Karoy Lorentey
7d6d779377
[PersistentCollections] Convert global lets to computed properties
...
This is just to prevent these from getting turned into global variables that are initialized on first access, especially once we make things inlinable.
(I expect these will all get moved under some type eventually.)
2022-09-09 00:47:10 -07:00
Karoy Lorentey
8d96e3d847
[PersistentCollections] DataBufferElement → Element, ReturnPayload → Element
...
`Payload` wouldn’t be a bad term for this, though, and we may return to it when we start thinking about PersistentSet.
2022-09-09 00:47:10 -07:00
Karoy Lorentey
36c7f9270c
[PersistentCollections] TrieBufferElement → _Node
2022-09-09 00:47:10 -07:00
Karoy Lorentey
5d8bb68209
[PersistentCollections] ReturnBitmapIndexedNode → _Node/Self
2022-09-09 00:47:10 -07:00
Karoy Lorentey
750559ea9e
[PersistentDictionary] PersistentDictionaryIndex → PersistentDictionary.Index
2022-09-08 00:55:48 -07:00
Karoy Lorentey
6f93a628e8
[PersistentDictionary] BitmapIndexedDictionaryNode → PersistentDictionary._ Node, Header → _NodeHeader
...
Also move Capacity, Bitmap under _NodeHeader.
Start thematically organizing _Node members.
2022-09-07 21:06:19 -07:00
Karoy Lorentey
2597ff23cd
[PersistentDictionary] Apply leading underscore rule to common functions
2022-09-07 21:06:19 -07:00
Karoy Lorentey
1f7eb2f95d
[PersistentDictionary] Remove unused utility functions
2022-09-07 21:06:19 -07:00
Karoy Lorentey
978a833756
[PersistentDictionary] Clean up Iterator types
...
- DictionaryKeyValueTupleIterator → PersistentDictionary.Iterator
- DictionaryKeyValueTupleReverseIterator → PersistentDictionary.ReverseIterator
The latter type is unused. Moved under the Unused folder for now.
2022-09-07 21:06:19 -07:00
Karoy Lorentey
8e19b80a23
[PersistentCollections] Apply the leading underscore rule
...
Also, move types into their own files.
2022-09-07 21:06:19 -07:00
Karoy Lorentey
b2d6d98edb
[PersistentCollections] NonzeroBits → _NonzeroBits
...
This doesn’t need to be public API.
2022-09-07 19:38:55 -07:00
Karoy Lorentey
1a4993dfda
[PersistentCollections] Reformat
...
Follow the Standard Library coding style:
- Hard 80 character line limit
- Use two spaces as the indentation unit
- Overlong lines broken up by adding line breaks at the following places
1. After opening delimiters & before closing delimiters
2. Between each item in a list
3. Extracting subexpressions etc as needed
2022-09-07 19:16:41 -07:00
Michael Steindorfer
ccd11e55dd
[Capsule] Clean-up annotations
2022-09-06 21:20:41 +02:00
Michael Steindorfer
e2f53441d6
[Capsule] Add subscript(position:) benchmarks
2022-09-06 20:39:38 +02:00
Michael Steindorfer
868eb2fdcc
[Capsule] Remove comment after check
2022-09-06 16:43:19 +02:00
Michael Steindorfer
49283d3251
[Capsule] Remove unchecked variant of initializer
2022-09-06 16:37:23 +02:00
Michael Steindorfer
26b97f95d2
[Capsule] Unify insertion/deletion methods
...
Note, always tracking discardable result negatively impacts batch
use cases.
2022-09-06 16:11:17 +02:00
Michael Steindorfer
7ea47d711f
[Capsule] Simplify deletion methods
2022-09-06 14:02:54 +02:00
Michael Steindorfer
4e213be00a
[Capsule] Simplify insertion methods
2022-09-06 13:53:58 +02:00
Michael Steindorfer
5bc17ffe84
[Capsule] Rename package to PersistentCollections
2022-09-06 13:22:10 +02:00