Michael Steindorfer
|
2b0574ca99
|
[Capsule] Fix invariant references
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
84a47155fb
|
[Capsule] Name correctly usages of trieRange
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
9331a01927
|
[Capsule] Use fixedTrieCapacity and rebind to AnyObject
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
e4d45eba7b
|
[Capsule] Make range functions generic
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
22a7c6a758
|
[Capsule] Avoid returning closure pointer
This change results in a slight performance hit.
Mitigations need to be investigated.
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
11f137a8da
|
[Capsule] Relocate range copy and edit functions
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
e66a39c100
|
[Capsule] Use withUnsafeMutablePointerRanges over alternative APIs
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
db398e85fa
|
[Capsule] Convert Header from tuple to struct
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
d49ec64899
|
[Capsule] Simplify bitmap processing
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
81a9c0ef13
|
[Capsule] Introduce withUnsafeMutablePointerRanges
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
b065b318cc
|
[Capsule] Add header helpers for imploding/exploding
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
83e40fcfd9
|
[Capsule] Finalize ManagedBuffer rework
Does exponentially grow buffer if it needs resizing, but does not shrink
it on deletion yet.
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
cedc74bea6
|
[Capsule] Hack minimal (continued)
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
3e559bbe94
|
[Capsule] Hack minimal example for constructing a trie
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
cf34478437
|
[Capsule] Avoid copyAndSetBitmapIndexedNode on equal references when updating
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
176c26ffed
|
[Capsule] Use rounded(.up) from standard library over Foundation.ceil
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
b6b88b9fb2
|
[Capsule] Simplify isKnownUniquelyReferenced logic
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
e3cda7682c
|
[Capsule] Reduce to one content slot per key/value tuple
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
83716efa14
|
[Capsule] Fix indentation
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
e32d9aa063
|
[Capsule] Check content invariant
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
35ccb9d9df
|
[Capsule] Add typealias for backend storage type
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
c38d56d438
|
[Capsule] Extract calls to isKnownUniquelyReferenced
|
2022-08-09 17:20:28 +02:00 |
|
Michael Steindorfer
|
e688e368ac
|
[Capsule] Specialize initializers
|
2022-08-09 17:20:28 +02:00 |
|
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
|
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
|
186bc959d3
|
[Capsule] Add CustomStringConvertible conformance
|
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
|
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
|
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 |
|