Commit Graph
217 Commits
Author SHA1 Message Date
Michael Steindorfer fbb72e0638 [Capsule] Use count as guidance for duplication checks 2022-08-09 17:20:28 +02:00
Michael Steindorfer 18209103d4 [Capsule] Trim down bitmap size 2022-08-09 17:20:28 +02:00
Michael Steindorfer b2fe267423 Revert "[Capsule] Experiment unifying node getter with uniqueness check"
This reverts commit 6861030778714080fb97e1b39021c173e99f4cd1.
2022-08-09 17:20:28 +02:00
Michael Steindorfer 130e4a51cc [Capsule] Experiment unifying node getter with uniqueness check 2022-08-09 17:20:28 +02:00
Michael Steindorfer 7f44f5439a [Capsule] Move allocation out of isTrieNodeKnownUniquelyReferenced 2022-08-09 17:20:28 +02:00
Michael Steindorfer 0940b271d0 [Capsule] Add benchmark helper script 2022-08-09 17:20:28 +02:00
Michael Steindorfer 3110518d5d [Capsule] Extend copy-on-write optimizations 2022-08-09 17:20:28 +02:00
Michael Steindorfer 0d91ef826a [Capsule] Enable more initializer tests 2022-08-09 17:20:28 +02:00
Michael Steindorfer ea6257fbb9 [Capsule] Enable test_CustomStringConvertible 2022-08-09 17:20:28 +02:00
Michael Steindorfer 77f6043c45 [Capsule] Add CustomDebugStringConvertible conformance to CollidableInt 2022-08-09 17:20:28 +02:00
Michael Steindorfer 4a76bd9548 [Capsule] Extract class CollidableInt from smoke tests 2022-08-09 17:20:28 +02:00
Michael Steindorfer 186bc959d3 [Capsule] Add CustomStringConvertible conformance 2022-08-09 17:20:28 +02:00
Michael Steindorfer bce54c64da [Capsule] Fix tests for unordered collections 2022-08-09 17:20:28 +02:00
Michael Steindorfer f719b1c846 [Capsule] Copy base of OrderedDictionary tests 2022-08-09 17:20:28 +02:00
Michael Steindorfer d9877e25cc [Capsule] Add underestimatedCount 2022-08-09 17:20:28 +02:00
Michael Steindorfer 042d2ebe2e [Capsule] Add tuple labels to iterator return values 2022-08-09 17:20:28 +02:00
Michael Steindorfer 3a8ee52e4a [Capsule] Add init(uniqueKeys keys: Keys, values: Values) 2022-08-09 17:20:28 +02:00
Michael Steindorfer 8014cc65dc [Capsule] Add inline annotations to initializer 2022-08-09 17:20:28 +02:00
Michael Steindorfer 5e50ccdcf6 [Capsule] Turn some preconditions into asserts 2022-08-09 17:20:28 +02:00
Michael Steindorfer 1181a85e2b [Capsule] Deduplicate ExpressibleByDictionaryLiteral implementation 2022-08-09 17:20:28 +02:00
Michael Steindorfer f53ca4302b [Capsule] Use mutable API inside initializer 2022-08-09 17:20:28 +02:00
Michael Steindorfer e28f675e3f [Capsule] Copy DictionaryBenchmark and add some Dictionary API 2022-08-09 17:20:28 +02:00
Michael Steindorfer e34d915fdb [Capsule] Extend BitmapIndexedMapNode with Sequence protocol
Further adds `count`to the node implementation for checking invariants.
2022-08-09 17:20:28 +02:00
Michael Steindorfer e80fdb72e4 [Capsule] Add helpers for hash-collision compaction 2022-08-09 17:20:28 +02:00
Michael Steindorfer 0350c95b09 [Capsule] Fix code style issues in test case 2022-08-09 17:20:28 +02:00
Michael Steindorfer 2dbf06702c [Capsule] Explode condition 2022-08-09 17:20:28 +02:00
Michael Steindorfer d2611a68d5 [Capsule] Fix hash-collision compaction scenario 2022-08-09 17:20:28 +02:00
Michael Steindorfer 50bfc64432 [Capsule] Add test for hash-collision compaction 2022-08-09 17:20:28 +02:00
Michael Steindorfer fcea661f5d [Capsule] Fix test case 2022-08-09 17:20:28 +02:00
Michael Steindorfer c87ca8401f [Capsule] Make dual nature of update/remove methods explicit 2022-08-09 17:20:28 +02:00
Michael Steindorfer 4a8a84f0be [Capsule] Use guards to check effects 2022-08-09 17:20:28 +02:00
Michael Steindorfer 385058a6f4 [Capsule] Use guard statements for bitmap case distinctions 2022-08-09 17:20:28 +02:00
Michael Steindorfer 1550743786 [Capsule] Rephrase return statement 2022-08-09 17:20:28 +02:00
Michael Steindorfer 247b813de0 [Capsule] Resolve various code style issues 2022-08-09 17:20:28 +02:00
Michael Steindorfer 5968608192 [Capsule] Remove trailing whitespace 2022-08-09 17:20:28 +02:00
Michael Steindorfer 7a4005eff3 [Capsule] Put colons next to identifiers 2022-08-09 17:20:28 +02:00
Michael Steindorfer 2e2297a83f [Capsule] Avoid wrapping if conditions in parentheses 2022-08-09 17:20:28 +02:00
Michael Steindorfer 612252e344 [Capsule] Rework merge functions 2022-08-09 17:20:28 +02:00
Michael Steindorfer f168e7fcba [Capsule] Introduce convenience constructors for BitmapIndexedMapNode 2022-08-09 17:20:28 +02:00
Michael Steindorfer 193753ecc3 [Capsule] Add convenience initializer for BitmapIndexedMapNode 2022-08-09 17:20:28 +02:00
Michael Steindorfer 43731f7aa1 [Capsule] Update copyright headers 2022-08-09 17:20:28 +02:00
Michael Steindorfer 0eae829f9d [Capsule] Clean-up TrieNode enum 2022-08-09 17:20:28 +02:00
Michael Steindorfer 11f7a8a221 [Capsule] Remove outdated comment 2022-08-09 17:20:28 +02:00
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