Commit Graph
16 Commits
Author SHA1 Message Date
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