Continue applying refactors and optimizations.

Key Changes:
 - _BTree.init() dynamically computes capacity from stride
 - _BTree.UnsafePath uses Unmanaged +0 references.

Minor Changes:
 - Fix _BTree.Iterator bug on single-leaf trees.
This commit is contained in:
Vihan Bhargava committed 2021-08-09 19:13:50 -07:00
1 parent 8de0b4ff7a
commit 98f278545d
25 files changed
+195 -179

No files matched your search

@@ -95,7 +95,7 @@ extension SortedDictionary {
@inlinable
@discardableResult
public mutating func updateValue(_ value: Value, forKey key: Key) -> Value? {
self._root.setAnyValue(value, forKey: key)?.value
self._root.updateAnyValue(value, forKey: key)?.value
}
}