Guillaume Lessard
9bf03ff58c
Merge pull request #414 from glessard/rdar134300306
...
[concurrency] conform Deque.Iterator to unchecked-Sendable
1.1.3
2024-08-19 18:45:56 -07:00
Guillaume Lessard
0f138be402
remove references to a deleted file
2024-08-19 18:17:03 -07:00
Guillaume Lessard
73f45ac311
[concurrency] conform Deque.Iterator uncheckedly to Sendable
2024-08-19 18:03:24 -07:00
Yuta Saito
38602cff9f
Merge pull request #408 from kateinoigakukun/yt/wasm-archs
...
[CMake] Add support for WebAssembly target architectures
2024-08-02 01:02:02 +09:00
Yuta Saito
effb33569a
[CMake] Add support for WebAssembly target architectures
...
To repair the swift-corelibs-foundation build on WebAssembly, we need to
add support for Wasm targets to swift-collections' CMake build system.
2024-08-01 00:30:34 +00:00
Karoy Lorentey
293314a584
Merge pull request #403 from quokkaKyu/release/1.1
...
add 'final' keyword to class
2024-07-18 14:38:35 -07:00
Karoy Lorentey
2db08b3d06
Merge pull request #405 from apple/accidentally-quadratic-BigString-init
...
[BigString] Fix accidentally quadratic `BigString.init`
2024-07-15 15:33:11 -07:00
Karoy Lorentey
5e1fe6e8f0
[BigString] Fix accidentally quadratic BigString.init
...
When ingesting a `String` instance, `BigString` assumes that the input string has a reasonably efficient UTF-8 view.
Unfortunately, that is very much not the case when the input happens to be backed by a bridged NSString object — it appears that in this case, the ingester loop invokes some operation(s) with linear complexity in the size of the entire input, rendering the ingester’s overall complexity quadratic.
The BigString ingester is only expected to operate within a single chunk at the time. It’s unclear precisely which operation triggers the quadratic behavior; ideally we should figure it out and resolve it with a more targeted fix.
In the meantime, a blunt stopgap fix is to force-transcode the input string to UTF-8 at the time the ingester is initialized. This unnecessarily wastes some (temporary) memory on holding the transcoded string, but it avoids the quadratic cliff.
2024-07-15 13:13:44 -07:00
quokkakyu
6b8276e252
add 'final' keyword to class
2024-07-15 09:27:27 +09:00
Jeremy Schonfeld
3d2dc41a01
[CMake] Reduce the size of the _FoundationCollections module ( #395 )
1.1.2
2024-07-08 11:23:21 -07:00
Jeremy Schonfeld
3e120b48bb
[CMake] Reduce path lengths in single-module build ( #392 )
...
* Eliminate relative paths from the cmake single-module build
* Attempt to reduce length of paths in single module build
2024-06-26 08:39:11 -07:00
Jeremy Schonfeld
af8349c392
Install the foundation toolchain module during the static swift build ( #391 )
2024-06-18 15:09:16 -07:00
Jeremy Schonfeld
ee97538f5b
Add Single Module Build Mode to CMake for Foundation ( #385 )
...
* Add new single-module and foundation-toolchain-module modes to CMake build
* Fix allowable client flag syntax
1.1.1
2024-06-03 16:15:50 -07:00
Karoy Lorentey
8253d6d89d
Merge pull request #384 from lorentey/rope-cow-violation
...
[Rope] Fix copy-on-write violation in Rope.join
2024-06-03 09:36:23 -07:00
Karoy Lorentey
a0b839d7de
[Rope] Fix copy-on-write violation in Rope.join
...
Rope.join has a logic error where it fails to properly ensure uniqueness of child node references before zipping the two b-trees together.
rdar://128450202
2024-05-31 17:12:07 -07:00
Karoy Lorentey
6c31865359
[test] Add tests for Rope.join’s copy-on-write behavior
2024-05-31 16:59:25 -07:00
Karoy Lorentey
e166904974
Merge pull request #382 from lorentey/rename-underscored-module
...
Rename _CollectionsUtilities to InternalCollectionsUtilities
2024-05-29 14:58:55 -07:00
Karoy Lorentey
35d5746117
Rename _CollectionsUtilities to InternalCollectionsUtilities
...
We are forced to do this due to an Xcode issue (#364 ) with underscored module names.
This module remains unstable, despite the removal of the underscore. Directly importing it from outside the package remains unsupported. This module and/or its entire contents may go away or change in incompatible ways in any future swift-collections release.
2024-05-29 14:00:13 -07:00
Karoy Lorentey
e74e76afa7
Merge pull request #370 from lorentey/stop-polluting-test-output
...
[test] TreeDictionary.Keys: Remove stray print that’s flooding test output
2024-05-28 17:00:20 -07:00
Karoy Lorentey
1ada2437a0
Merge pull request #381 from lorentey/bogus-assert-in-Deque
...
[Deque]: Fix bogus assert in Deque._Storage._ensureUnique
2024-05-28 16:46:41 -07:00
Karoy Lorentey
ead6314a1c
[Deque]: Fix bogus assert in Deque._Storage._ensureUnique
...
A non-unique reference to a storage instance can legitimately become unique at any point, due to other references (say, held, by another thread) getting destroyed.
`Deque`’s `ensureUnique` implementation currently invokes the uniqueness check two times in quick succession, expecting it to return false both times. In rare circumstances, this can lead to a spurious trap in concurrent environments.
Fix this by avoiding calling `isUnique` more than once.
2024-05-24 13:13:00 -07:00
Karoy Lorentey
28161fc21f
Merge pull request #377 from iCharlesHu/charles/fix-ordered-collections-cmake
...
Fix the incorrect file name in OrderedCollections cmake file
2024-05-21 20:48:59 -07:00
Charles Hu
89b3ca0146
Fix the incorrect file name in OrderedCollections cmake file
...
- Currently OrderedCollections cmake incorrectly list "Utilities/_UnsafeBitSet.swift" instead of "Utilities/_UnsafeBitset.swift", causing build failures
2024-05-21 19:24:08 -07:00
Karoy Lorentey
e861d3eb3c
Update CODEOWNERS
...
(cherry picked from commit e3954cdae4 )
2024-05-10 18:00:54 -07:00
Karoy Lorentey
fdc7c921d0
Merge pull request #373 from iCharlesHu/charles/cmake-rename-rope-module
...
Rename RopeModule to _RopeModule in CMakeLists.txt to match Package.swift
2024-04-30 13:28:19 -07:00
Charles Hu
ba5154b934
Rename RopeModule to _RopeModule in CMakeLists.txt to match Package.swift
2024-04-30 11:23:27 -07:00
Karoy Lorentey
e9112f40dd
[test] TreeDictionary.Keys: Remove stray print that’s flooding test output
2024-04-23 15:53:40 -07:00
Mishal Shah
08347cc2d3
Add post-merge CI support for Swift 6.0 nightly macOS and Ubuntu 22.04
2024-04-18 21:59:19 -07:00
Mishal Shah
31d3880150
Merge pull request #368 from apple/add_swift-ci-post-merge-release-1.1
...
Add post-merge CI support for release/1.1 branch
2024-04-18 18:25:17 -07:00
Mishal Shah
7425af3a9e
Add post-merge CI support for release/1.1 branch
2024-04-18 18:22:55 -07:00
Karoy Lorentey
1ceeb5012b
Merge pull request #360 from lorentey/update-readme-1.1
...
Update README
2024-02-12 11:39:07 -08:00
Karoy Lorentey
e424b48761
[README] Describe branching strategy
2024-02-12 11:07:48 -08:00
Karoy Lorentey
20dd1fc504
[README] Update doc links
2024-02-12 11:07:34 -08:00
Karoy Lorentey
94cf62b3ba
Merge pull request #352 from vanvoorden/vanvoorden/tree-dictionary-keys-equality
...
[TreeDictionary][Keys] Add Equatable and Hashable Conformance to TreeDictionary.Keys
1.1.0
2024-02-06 18:58:46 -08:00
Rick van Voorden
c61e5e23c8
tree dictionary keys hashable cleanup
2024-02-06 17:26:21 -08:00
Karoy Lorentey
97b1949c05
Merge pull request #357 from lorentey/cherry-pick-356
...
[1.1] Fix typos
2024-02-06 16:54:40 -08:00
Rick van Voorden
a04721360b
tree dictionary keys hashable cleanup
2024-02-06 16:25:33 -08:00
Rick van Voorden
ffa9e65ccc
wip tree dictionary keys hashable
2024-02-06 15:58:31 -08:00
Rick van Voorden
ff73ed71bb
wip tree dictionary keys hashable
2024-02-06 15:57:54 -08:00
Dimitris Apostolou
7539583245
Fix typos
...
# Conflicts:
# Sources/SortedCollections/BTree/_BTree+BidirectionalCollection.swift
# Sources/SortedCollections/BTree/_BTree+UnsafeCursor.swift
# Sources/SortedCollections/BTree/_BTree.Builder.swift
# Sources/SortedCollections/BTree/_BTree.swift
# Sources/SortedCollections/BTree/_Node.Splinter.swift
# Sources/SortedCollections/BTree/_Node.Storage.swift
# Sources/SortedCollections/BTree/_Node.UnsafeHandle+Insertion.swift
# Sources/SortedCollections/BTree/_Node.swift
# Tests/SortedCollectionsTests/BTree/Node+Join Tests.swift
2024-02-06 15:52:26 -08:00
Karoy Lorentey
def1b63177
Merge pull request #355 from lorentey/release-1.1-prep
...
Release preparations for 1.1
2024-02-06 15:43:23 -08:00
Rick van Voorden
3abf60adae
wip tree dictionary keys hashable
2024-02-06 14:21:29 -08:00
Karoy Lorentey
30ed8ac94c
Merge pull request #351 from vanvoorden/vanvoorden/equality-benchmarks
...
[Benchmarks] Add Collection Equality Benchmarks
2024-02-05 19:56:32 -08:00
Karoy Lorentey
8e64f064f5
[Xcode] Update the Xcode project
2024-02-02 22:02:05 -08:00
Karoy Lorentey
4d1e23176b
[Benchmark] Require Swift 5.7
2024-02-02 22:01:15 -08:00
Karoy Lorentey
41b95865a2
Update README
2024-02-02 16:27:21 -08:00
Karoy Lorentey
e21c18c05c
Update Swift version references in docs
2024-02-02 16:20:22 -08:00
Karoy Lorentey
ffa4a58bc1
Update remaining copyright notices
2024-02-02 16:20:22 -08:00
Karoy Lorentey
5bce3c9ceb
[RopeModule] Adopt _specialize and extend adoption of modern generic decl syntax
2024-02-02 16:20:21 -08:00
Karoy Lorentey
64b286d63d
[OrderedCollections] Update copyright notices
2024-02-02 16:20:21 -08:00