Commit Graph
179 Commits
Author SHA1 Message Date
Michael Steindorfer 0c192fd2e6 [Capsule] Add bitmap to sequence converters 2022-08-12 15:50:28 +02:00
Michael Steindorfer c7905a5153 [Capsule] Add basic implementation of PersistentDictionary.Index type 2022-08-09 17:20:29 +02:00
Michael Steindorfer d9e22947f7 [Capsule] Provide skeletons for keys and values views
These are simplistic approximations that will require rework.
2022-08-09 17:20:29 +02:00
Michael Steindorfer fadd0541a4 [Capsule] Add placeholders for missing Dictionary protocols 2022-08-09 17:20:29 +02:00
Michael Steindorfer 93054561f6 [Capsule] Add preliminary support for shrinking 2022-08-09 17:20:29 +02:00
Michael Steindorfer ce70ede82c [Capsule] Constrain capacity type 2022-08-09 17:20:29 +02:00
Michael Steindorfer fc60fae4d7 [Capsule] Rename HashMap to PersistentDictionary 2022-08-09 17:20:28 +02:00
Michael Steindorfer 624b245c7e [Capsule] Rework MapKeyValueTupleIterator 2022-08-09 17:20:28 +02:00
Michael Steindorfer 94505e600e [Capsule] Make ReturnPayload binding explicit in hash collision node 2022-08-09 17:20:28 +02:00
Michael Steindorfer 108289e8fc [Capsule] Fix heap buffer overflow issue during deletion 2022-08-09 17:20:28 +02:00
Michael Steindorfer 40e0f806a4 [Capsule] Make get internal in favor of subscript 2022-08-09 17:20:28 +02:00
Michael Steindorfer f809ec1e79 [Capsule] Remove alternatives that have undefined behavior 2022-08-09 17:20:28 +02:00
Michael Steindorfer 5604bee3d2 [Capsule] Make ReturnPayload binding explicit 2022-08-09 17:20:28 +02:00
Michael Steindorfer 49c478877a [Capsule] Convert to unsigned bitmap type 2022-08-09 17:20:28 +02:00
Michael Steindorfer 7bb9cbad57 [Capsule] Ensure object layout of Node is class reference 2022-08-09 17:20:28 +02:00
Michael Steindorfer 2856197785 [Capsule] Make alignment calculation robust 2022-08-09 17:20:28 +02:00
Michael Steindorfer d295c30459 [Capsule] Remove unused key set hash code 2022-08-09 17:20:28 +02:00
Michael Steindorfer cf5310624b [Capsule] Use provided hasher argument 2022-08-09 17:20:28 +02:00
Michael Steindorfer b2808c45bb [Capsule] Clean-up comments and unused constants 2022-08-09 17:20:28 +02:00
Michael Steindorfer d7bda3b2e3 [Capsule] Unclutter segment counts 2022-08-09 17:20:28 +02:00
Michael Steindorfer 4805a86453 [Capsule] Replace buffer with baseAddress references 2022-08-09 17:20:28 +02:00
Michael Steindorfer d3816c2fba [Capsule] Rework buffer to use UnsafeMutableRawPointer 2022-08-09 17:20:28 +02:00
Michael Steindorfer fe7f34e071 [Capsule] Make fixedTrieCapacity adjustable to bitmap format 2022-08-09 17:20:28 +02:00
Michael Steindorfer 3a3e078a4f [Capsule] Bind trieRange with unsafe 2022-08-09 17:20:28 +02:00
Michael Steindorfer fdb2231cb1 Revert "Revert "[Capsule] Use fixedTrieCapacity and rebind to AnyObject""
This reverts commit 1117a89541c6294d89963c80b18d11296bcdc88f.
2022-08-09 17:20:28 +02:00
Michael Steindorfer 2d9baf6b3a Revert "[Capsule] Use fixedTrieCapacity and rebind to AnyObject"
This reverts commit f9deeab824598b050bed44c879243fbf999e8b11.
2022-08-09 17:20:28 +02:00
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