Karoy Lorentey
5dfd51238c
[OrderedSet] Review, test, fix, and document set relation predicates
2022-10-19 15:20:30 -07:00
Karoy Lorentey
8ce8a6bc86
[PersistentSet] Review, test, fix, and document set relation predicates
2022-10-19 15:20:17 -07:00
Karoy Lorentey
f843bd40bf
[PersistentSet] Add update(_:at:)
2022-10-19 15:20:17 -07:00
Karoy Lorentey
001df8e325
[BitSet] Review, test, fix, and document set relation predicates
...
- Update documentation
- Improve performance where possible
- Add missing test coverage where needed
2022-10-19 15:20:17 -07:00
Karoy Lorentey
291623d391
[BitSet] Implement isEqual(to:) family of functions
2022-10-19 01:40:06 -07:00
Karoy Lorentey
86d429604c
[BitSet] Doc updates
2022-10-19 01:40:06 -07:00
Karoy Lorentey
51a1554f89
Introduce _UniqueCollection & _SortedCollection
...
These marker-like protocols will allow certain
generic operations to get a performance boost
if the passed-in value happens to be guaranteed
to contain unique elements or to be sorted.
Also, review API checker protocols for Sets and
sorted collections and adjust things as needed.
BitSet gains custom implementations for min()
and max() as part of these improvements.
2022-10-19 01:40:06 -07:00
Karoy Lorentey
f76630db8e
[Internals] Add missing internal checking predicates & docs for all
2022-10-18 22:13:19 -07:00
Karoy Lorentey
5b5651957b
[PersistentSet] Doc updates
2022-10-18 21:57:46 -07:00
Karoy Lorentey
b9d8637900
Merge pull request #213 from lorentey/update-package-manifest
...
[manifest] Exclude CMakeLists.txt; remove unnecessary path settings; reindent file
2022-10-18 21:54:30 -07:00
Karoy Lorentey
47db34662b
Merge pull request #212 from lorentey/fix-readme
...
Update README files
2022-10-18 21:53:33 -07:00
Karoy Lorentey
02ea4e8492
[_CollectionsTestSupport] Move StringConvertibleValue under Utilities
2022-10-18 21:44:24 -07:00
Karoy Lorentey
03832459ac
Update README files, harder this time
2022-10-18 21:28:26 -07:00
Karoy Lorentey
1490835b28
[manifest] Exclude CMakeLists.txt; remove unnecessary path settings; reindent
2022-10-18 20:44:46 -07:00
Karoy Lorentey
39bdcca7c9
Update README files
...
- Fix issues reported by @benrimmington (thanks!)
- Update wording on evolving Swift toolchain requirements
- Update contributor guide on adding a new data structure to better reflect reality
- Add an extra sentence on combinatorial tests
2022-10-16 17:06:32 -07:00
Karoy Lorentey
ee833e0773
Merge pull request #210 from lorentey/heap-test-updates
...
[Heap] Prerelease preparations
2022-10-14 16:12:49 -07:00
Karoy Lorentey
fc8092d044
[Heap] Small preparation for improving insert(contentsOf:)
2022-10-14 10:34:58 -07:00
Karoy Lorentey
2e9447fb1c
[_CollectionsTestSupport] Richer support for combinatorial testing
2022-10-13 15:45:08 -07:00
Karoy Lorentey
098495b4ab
[Heap] Add more exhaustive tests for some critical paths
2022-10-13 14:52:06 -07:00
Karoy Lorentey
dc01b52a21
[Heap] Fix stray character in COLLECTION_INTERNAL_CHECKS condition
2022-10-13 14:51:04 -07:00
Karoy Lorentey
fbebb69a1b
[Heap] Doc updates
2022-10-13 14:50:18 -07:00
Karoy Lorentey
5f70117c55
[Heap] Start using _CollectionsTestSupport for testing
2022-10-12 16:30:52 -07:00
Karoy Lorentey
0f7db43847
Merge branch 'heap-replace-min-max' into release/1.1
2022-10-12 16:29:25 -07:00
Karoy Lorentey
1228e9c162
[Heap] Update docs for replaceMin/replaceMax
2022-10-12 16:01:48 -07:00
Karoy Lorentey
7138144f37
[Heap] Remove unnecessary testing APIs
...
We do not need a _raw initializer in the Heap implementation. The
heapify algorithm will not modify storage if it’s already in the
expected shape, so we can simply define one locally that double checks
that the order remains unchanged.
2022-10-12 16:01:23 -07:00
Karoy Lorentey
92d808d179
Merge branch 'heap-replace-extrema' into release/1.1
2022-10-12 15:23:17 -07:00
Karoy Lorentey
42a09cef24
Merge pull request #205 from lorentey/remove-SortedCollections-from-1.1
...
[1.1][SortedCollections] Remove for now
2022-10-11 18:03:50 -07:00
Karoy Lorentey
b1506b6225
[SortedCollections] Remove for now
...
These are still on track for 1.2.0, but I’ll need to bump them from
the release/1.1 branch.
2022-10-11 17:55:35 -07:00
Karoy Lorentey
30f1bf166c
Merge pull request #202 from compnerd/patch-1
...
Update CMakeLists.txt
2022-10-11 13:58:19 -07:00
Saleem Abdulrasool
2a81cb1186
Update CMakeLists.txt
...
Remove accidental reference to CMakeLists.txt as a source file.
2022-10-11 13:46:20 -07:00
Karoy Lorentey
89de13ff1b
Merge pull request #200 from lorentey/update-cmake-for-1.1
...
Update CMake configuration in preparation for 1.1
2022-10-11 13:43:15 -07:00
Karoy Lorentey
5aed92655d
[CMake] Update CMake build configuration
2022-10-11 13:11:37 -07:00
Karoy Lorentey
68844ec6d9
Integer Tricks → IntegerTricks
2022-10-11 13:11:28 -07:00
Karoy Lorentey
f086dadebf
Merge pull request #199 from lorentey/merge-1.0-to-1.1
...
Merge release/1.0 to release/1.1
2022-10-11 13:04:07 -07:00
Karoy Lorentey
8b06c61c7e
Merge branch 'release/1.0' into release/1.1
2022-10-11 11:24:28 -07:00
Karoy Lorentey
dd224fc017
Merge pull request #198 from lorentey/allow-building-with-swift-5.5
...
Restore support for building with Swift 5.5
2022-10-10 18:42:13 -07:00
Karoy Lorentey
6286cd0b99
Restore support for building with Swift 5.5
...
This is mostly about adding more type declarations to deal with type checker limitations in the older compiler.
This also includes workarounds that allow better support for CodingKeyRepresentable in PersistentDictionary, and it fixes a couple of small oversights on various #else branches.
2022-10-10 18:07:49 -07:00
Karoy Lorentey
f6d125e555
Merge pull request #196 from lorentey/require-swift-5.5
...
[1.1.0] Bump minimum required Swift toolchain to 5.5
2022-10-10 17:30:28 -07:00
Karoy Lorentey
7cec5d1ed7
[_CollectionsUtilities] Work around SR-14663
...
Unfortunate edge case: the new `initialize(fromContentsOf:)` from
SE-0370 is calling withContiguousStorageIfAvailable, so it is subject
to SR-14663.
This means we can either choose to continue maintaining the
workaround, or we can call the stdlib’s implementation, but not both.
2022-10-10 17:23:22 -07:00
Karoy Lorentey
541bd53958
[BitCollections] Move shared utilities to _CollectionsUtilities
2022-10-09 20:11:51 -07:00
Karoy Lorentey
3d11356006
[OrderedSet] Move RAC utilities to _CollectionsUtilities module
2022-10-09 20:11:51 -07:00
Karoy Lorentey
48ac82c029
[Deque] Modernize code base for Swift 5.5
2022-10-09 20:11:51 -07:00
Karoy Lorentey
cd493b04c8
Update README in preparation to tagging 1.1.0
2022-10-09 17:11:03 -07:00
Karoy Lorentey
453de13e1c
Require a Swift 5.5 toolchain in Swift Collections 1.1.0
...
It is not tenable to continue supporting ancient toolchains
indefinitely, as each supported toolchain version adds a nontrivial
amount of prerelease testing work. Additionally, working around
bugs in older toolchains that have been long since resolved is not a
productive use of anyone’s time.
Users who are stuck on older toolchains are of course welcome to
continue using the last package release that supports their
platform. (And they may continue to receive bug fix updates, as
we can always tag new bugfix releases on older minor release
branches.)
2022-10-09 16:49:12 -07:00
Karoy Lorentey
d05cba098a
Merge pull request #195 from lorentey/fix-bitset-shrinking-issue
...
[BitSet] Fix invariant violation in member subscript
2022-10-09 16:41:50 -07:00
Karoy Lorentey
1b71d2cd94
[BitSet] Fix invariant violation in member subscript
2022-10-09 16:12:17 -07:00
Karoy Lorentey
92210c5ca3
Merge pull request #194 from lorentey/heap-module
...
Rename `PriorityQueueModule` to `HeapModule`
2022-10-09 16:04:49 -07:00
Karoy Lorentey
c7c0a094f9
Update Xcode schemes
2022-10-09 15:44:56 -07:00
Karoy Lorentey
33b759b842
[Heap] PriorityQueueModule → HeapModule
2022-10-09 15:44:44 -07:00
Karoy Lorentey
40811cfafa
Merge pull request #193 from lorentey/fleshing-out-PersistentSet
...
Fleshing out `PersistentSet`
2022-10-09 15:41:42 -07:00