Commit Graph
290 Commits
Author SHA1 Message Date
Michael Steindorfer bf224619a5 [Capsule][WIP] Return to monomorphic spine, continued 2022-09-05 20:24:13 +02:00
Michael Steindorfer ef523a9f57 [Capsule] Add smoke test for larger hash-collision nodes 2022-09-05 12:22:09 +02:00
Michael Steindorfer 81a38b39ca [Capsule] Add BitmapIndexedDictionaryNode: CustomStringConvertible skeleton 2022-09-05 12:17:18 +02:00
Michael Steindorfer 0550c27fca [Capsule] Add BitmapIndexedDictionaryNode: CustomDebugStringConvertible skeleton 2022-09-05 12:15:09 +02:00
Michael Steindorfer 26893b1712 [Capsule][WIP] Return to monomorphic spine 2022-09-02 12:19:26 +02:00
Michael Steindorfer 5eb679dff7 [Capsule] Reduce expensive invariant check that slow down testing 2022-09-02 10:13:57 +02:00
Michael Steindorfer 3d4b802ef7 [Capsule] Add specialized subscript(position: Self.Index) method 2022-09-02 09:01:42 +02:00
Michael Steindorfer cc0f051b74 [Capsule] Revert to AnyObject node representation
Fixes an issue with `isTrieNodeKnownUniquelyReferenced` and existential
types.
2022-09-02 09:01:42 +02:00
Michael Steindorfer fa8afba05a [Capsule] Convert to TrieNode content and add specialized index
Note that this is an intermediate step towards generic heterogeneous
`any` type content.
2022-09-02 09:01:42 +02:00
Michael Steindorfer b879788d8a [Capsule] Replace sizePredicate usage by count 2022-09-02 09:01:42 +02:00
Michael Steindorfer c6b971910f [Capsule] Replace top-level cachedSize with per node count 2022-09-02 09:01:42 +02:00
Michael Steindorfer c8a880794d [Capsule] Simplify initializers 2022-09-02 09:01:42 +02:00
Michael Steindorfer 3b2c061ecf [Capsule] Backout explicit collision bitmap to simplify codebase 2022-09-02 09:01:42 +02:00
Michael Steindorfer 3e3e3cc5f1 [Capsule] Add Equatable smoke test for a special case 2022-09-02 09:01:02 +02:00
Michael Steindorfer afcd915044 [Capsule] Add persistent dictionary index benchmarks 2022-09-02 09:00:52 +02:00
Michael Steindorfer 810f22d976 [Capsule] Add sequence representations for slices 2022-08-19 14:30:48 +02:00
Michael Steindorfer 8563a916a8 [Capsule] Exemplify enumeration of compacted array 2022-08-19 14:18:12 +02:00
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 92d07b3910 [Capsule] Add [COW] subscript, remove existing benchmark 2022-08-09 17:20:29 +02:00
Michael Steindorfer 60f0b6d109 [Capsule] Remove outdated Capsule benchmark helper 2022-08-09 17:20:28 +02:00
Michael Steindorfer fc60fae4d7 [Capsule] Rename HashMap to PersistentDictionary 2022-08-09 17:20:28 +02:00
Michael Steindorfer f956009ac2 [Capsule] Add [COW] subscript, insert benchmark 2022-08-09 17:20:28 +02:00
Michael Steindorfer 5fad00e87b [Capsule] Remove reserveCapacity test since it is not supported 2022-08-09 17:20:28 +02:00
Michael Steindorfer 0f0c0bdc90 [Capsule] Pin type to Capsule hash-map 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 1ffd819a0e [Capsule] Draft benchmark configuration 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