Commit Graph
5 Commits
Author SHA1 Message Date
Karoy Lorentey 8d7c777e47 [PersistentCollections] _children → children, itemEnd → itemsEndSlot, childEnd → childrenEndSlot 2022-09-19 21:25:07 -07:00
Karoy Lorentey d45f264ef0 [PersistentDictionary] Fix index(forKey:) performance 2022-09-17 20:04:19 -07:00
Karoy Lorentey 6cf128e6ea [PersistentCollections] Internal doc updates 2022-09-16 14:49:37 -07:00
Karoy Lorentey 0fe7f080c0 [PersistentCollections] offset → slot
(Internally) standardize on using the word “slot” to refer to an id
for a location within a contiguous storage buffer that can hold a
single item of some kind.

“Offset” is sometimes used in public APIs (to refer to integer
distances within collections, relative to some start position),
and using the same term here causes internal naming difficulties.

A “bucket” is therefore a more specific name for a slot within a
hash table.
2022-09-16 01:30:06 -07:00
Karoy Lorentey 6dd02114b8 [PersistentCollections] Flesh out _RawNode, add _UnmanagedNode
These provide a barebones, read-only, non-generic abstraction,
with just enough functionality to allow navigating around in
the tree structure.

We will use these to implement path-based indices.
2022-09-15 20:56:50 -07:00