Karoy Lorentey
9150bbf06e
[PersistentCollections] Cache the item hash within collision nodes
...
This will simplify merge operations as we no longer have to spend effort on preventing repeated rehashings of items within collision nodes.
Also, review and simplify node allocation and lookup code.
2022-09-23 11:15:56 -07:00
Karoy Lorentey
eefef1e585
[PersistentCollections] Small path-related adjustments
2022-09-23 11:15:46 -07:00
Karoy Lorentey
958fd47539
[PersistentSet] Start drafting the new type
2022-09-21 10:45:20 -07:00
Karoy Lorentey
ea30715a6c
[PersistentDictionary] Implement Keys and Values views
2022-09-19 21:25:07 -07:00
Karoy Lorentey
a2491aac45
[PersistentDictionary] Improved copy & resize operations
...
Don’t copy the current node and then insert a new item into it.
Instead, create the copy with the new item already inserted.
Ditto for new collisions.
2022-09-19 21:25:07 -07:00
Karoy Lorentey
f7c419d7cf
[PersistentDictionary] Rework allocations
2022-09-19 21:25:07 -07:00
Karoy Lorentey
53895c6537
[PersistentCollections] Split up node mutations into multiple files
2022-09-19 21:24:37 -07:00