Commit Graph
174 Commits
Author SHA1 Message Date
Michael Steindorfer 68948e1da7 [Capsule] Add precondition violation error message 2022-08-09 17:20:28 +02:00
Michael Steindorfer b4c7f1dd51 [Capsule] Name payload tuple components 2022-08-09 17:20:28 +02:00
Michael Steindorfer e9fe942c99 [Capsule] Clean-up method names 2022-08-09 17:20:28 +02:00
Michael Steindorfer 2d45f7af8b [Capsule] Rename AnyNode to TrieNode 2022-08-09 17:20:28 +02:00
Michael Steindorfer 25f6de0d65 [Capsule] Clean-up associated types 2022-08-09 17:20:28 +02:00
Michael Steindorfer b87d6109a6 [Capsule] Rename generic node API in Node protocol 2022-08-09 17:20:28 +02:00
Michael Steindorfer e0ff97728c [Capsule] Rename bitmap indexed node API in Node protocol 2022-08-09 17:20:28 +02:00
Michael Steindorfer 31a7f073d3 [Capsule] Rename hash collision node API in Node protocol 2022-08-09 17:20:28 +02:00
Michael Steindorfer e246bd5cbc [Capsule] Remove redundant MapNode protocol overrides 2022-08-09 17:20:28 +02:00
Michael Steindorfer da5b426998 [Capsule] Made iterators aware of node enum type 2022-08-09 17:20:28 +02:00
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