Michael Steindorfer
b489a6e786
[Capsule] Add special case iterator test
2022-08-09 17:20:28 +02:00
Michael Steindorfer
3803970073
[Capsule] Fix compaction upon delete with SizePredicate
2022-08-09 17:20:28 +02:00
Michael Steindorfer
4c7149f03d
[Capsule] Experiment with any nodes API
2022-08-09 17:20:28 +02:00
Michael Steindorfer
8d50cb4828
[Capsule] Improve == for CollidableInt and fix white-space issues
2022-08-09 17:20:28 +02:00
Michael Steindorfer
5950335e99
[Capsule] Make test case deterministic
2022-08-09 17:20:28 +02:00
Michael Steindorfer
e6365db080
[Capsule] Adopt Swift naming convention for chaining methods
2022-08-09 17:20:28 +02:00
Michael Steindorfer
2ac27e669a
[Capsule] Rework hash-collision logic based on monomorphic trie nodes
2022-08-09 17:20:28 +02:00
Michael Steindorfer
21c0c0ef87
[Capsule] Prepare introduction of collMap
2022-08-09 17:20:28 +02:00
Michael Steindorfer
2c0b7d744f
[Capsule] Generalize bitmap usage with typealias
...
* Turns computed properties into constants.
* Validate `Bitmap` and `BitPartitionSize` fit together.
2022-08-09 17:20:28 +02:00
Michael Steindorfer
ec017cba3a
[Capsule] Use larger chunk size for more shallow tries
2022-08-09 17:20:28 +02:00
Michael Steindorfer
2be8545840
[Capsule] Use overflowing bit-wise operations
2022-08-09 17:20:28 +02:00
Michael Steindorfer
7d0cc05262
[Capsule] Add test functions for feature exploration
...
Triggers the following features:
* copy-on-write
* property caching (e.g., `cachedSize`)
2022-08-09 17:20:28 +02:00
Michael Steindorfer
72950a90f3
[Capsule] Fix Copy-On-Write semantics for nested nodes
2022-08-09 17:20:28 +02:00
Michael Steindorfer
b175001db2
[Capsule] Add support for Copy-On-Write
...
This is work-in-progress, since it's not yet working deeper in the tree.
2022-08-09 17:20:28 +02:00
Michael Steindorfer
212fa0eb98
[Capsule] Update copyright headers
2022-08-09 17:20:28 +02:00
Michael Steindorfer
b34c8dad97
[Capsule] Implement Equatable protocol
2022-08-09 17:20:28 +02:00
Michael Steindorfer
8e2ec3c49b
[Capsule] Make copyAndSetNode generic
2022-08-09 17:20:28 +02:00
Michael Steindorfer
d4ecaa0f75
[Capsule] Make spine of trie monomorphic
2022-08-09 17:20:28 +02:00
Michael Steindorfer
e09c8db428
[Capsule] Implement preliminary hash-collision resolution
2022-08-09 17:20:28 +02:00
Michael Steindorfer
77ef6122d3
[Capsule] Rename and simplify smoke tests
2022-08-09 17:20:28 +02:00
Michael Steindorfer
b518d56b65
[Capsule] Implement Hashable extension for HashMap
2022-08-09 17:20:28 +02:00
Michael Steindorfer
29dd2c8b4f
[Capsule] Remove unused XCTest import
2022-08-09 17:20:28 +02:00
Michael Steindorfer
ce5a6bd71a
[Capsule] Update copyright headers
...
Correctly reflects refining edits as well and not only initial draft date.
2022-08-09 17:20:28 +02:00
Michael Steindorfer
b3e1e9d446
[Capsule] Harmonize identation
2022-08-09 17:20:28 +02:00
Michael Steindorfer
1598e22e45
[Capsule] Split nested structs and classes into separate files
2022-08-09 17:20:28 +02:00
Michael Steindorfer
88051725bb
[Capsule] Rename Common.swift -> _Common.swift
2022-08-09 17:20:28 +02:00
Michael Steindorfer
3cb6fb3251
[Capsule] Split HashMap extensions into separate files
2022-08-09 17:20:28 +02:00
Michael Steindorfer
097e6b75b7
[Capsule] Update copyright headers
2022-08-09 17:20:28 +02:00
Michael Steindorfer
03913fd745
[Capsule] Increase visibility of count and subscript to public
2022-08-09 17:20:28 +02:00
Michael Steindorfer
13bd00bda4
[Capsule] Adhere to CollectionsTestSupport in test code
2022-08-09 17:20:28 +02:00
Michael Steindorfer
449e5706bd
[Capsule] Add package configuration
2022-08-09 17:20:28 +02:00
Michael Steindorfer
488322edff
[Capsule] Import sources
2022-08-09 17:20:28 +02:00
Karoy Lorentey
f8ac3af99b
Merge pull request #156 from apple/fiddle-with-schemes
...
Reinstate custom schemes under Utils/swift-collections.xcworkspace
2022-08-05 13:47:47 -07:00
Karoy Lorentey
00a99aa77c
swift-collections.xcworkspace: Update dependencies
2022-08-03 12:18:57 -07:00
Karoy Lorentey
3fce10a45a
Set up shared schemes in the xcworkspace under Utils/
2022-08-03 12:18:57 -07:00
Karoy Lorentey
afac2cf830
Merge pull request #155 from hectormatos2011/patch-1
...
Remove Swift PM Artifacts to avoid Generated Schemes in Xcode
2022-08-03 12:04:06 -07:00
Hector Matos
7016a13f0e
Update .gitignore
2022-08-02 16:46:27 -05:00
Hector Matos
480b0af010
Delete .swiftpm directory
2022-08-02 16:44:59 -05:00
Karoy Lorentey
108ac4fa4e
Merge pull request #141 from apple/merge.2021-02-09.release-1.0→main
...
Merge `release/1.0` to `main`
2022-02-09 14:46:41 -08:00
Karoy Lorentey
29120ea640
Merge branch 'release/1.0'
2022-02-09 11:56:38 -08:00
Karoy Lorentey
20e7fceec8
Merge pull request #140 from apple/fix-OrderedDictionary-grouping-inference
...
[OrderedDictionary] Fix type inference issue with `OrderedDictionary.init(grouping:by:)`
2022-02-09 11:55:48 -08:00
Karoy Lorentey
50e6a1ac71
[OrderedDictionary] Fix type inference issue with OrderedDictionary.init(grouping:by:)
...
This adds a new overload to help the type checker infer `[S.Element]` as the default `Value` type.
Resolves #139 .
2022-02-08 14:16:18 -08:00
Karoy Lorentey
22dc81b89f
Merge pull request #130 from lorentey/main
...
Merge release/1.0 to main
2021-11-15 17:22:35 -08:00
Karoy Lorentey
286fedb1e8
Merge branch 'release/1.0'
2021-11-15 17:01:49 -08:00
Karoy Lorentey
48254824bb
Merge pull request #113 from lorentey/deque-scaling
...
[Deque] `append(contentsOf:):` Use exponential capacity reservation
1.0.2
2021-11-15 16:15:59 -08:00
Károly Lőrentey
efefae5653
[Deque] append(contentsOf:): Use exponential capacity reservation
...
Depending on the supplied sequence, `Deque.append(contentsOf:)` currently reserves just enough capacity as it needs to perform the append. This isn't right -- it can result in O(n) reallocs instead of O(log(n)) when items are incrementally appended in constant-sized `append(contents:)` batches.
2021-11-15 16:12:28 -08:00
Karoy Lorentey
1337897dc6
Merge pull request #128 from lorentey/full-test-improvements
...
[Utils] run-full-tests.sh: Add support for testing on Swift 5.3 without manual editing
2021-11-15 16:05:40 -08:00
Karoy Lorentey
9dde4b5603
[Utils] run-full-tests.sh: Add support for testing on Swift 5.3 without manual editing
2021-11-15 15:46:12 -08:00
Karoy Lorentey
da3a73ed90
Merge pull request #126 from lorentey/full-test-improvements
...
[Utils] run-full-tests.sh: Keep going after a failure
2021-11-15 14:50:57 -08:00
Károly Lőrentey
ddc8b9c66d
[Utils] run-full-tests.sh: Keep going after a failure
2021-11-15 14:08:09 -08:00