Vihan Bhargava
|
5690056991
|
Add cursor type for imperative tree modification.
Key Changes:
- Implement _BTree.Cursor for performing efficient mutations on a tree
Minor Changes:
- New implementation of _BTree.Index and iteration
|
2021-08-09 19:13:50 -07:00 |
|
Vihan Bhargava
|
8de0b4ff7a
|
Implement primary SortedSet methods and various refactors.
Key Changes:
- SortedSet
- Implement Partial RangeReplaceableCollection
- Implement ExpressibleByArrayLiteral
- Implement init<S: Sequence>(_: S)
- Implement Set methods:
- update(with:) / insert(_:) / contains(_:)
- SortedDictionary
- Implement SortedDictionary.Values: BidirectionalCollection
- Implement SortedDictionary.Keys: BidirectionalCollection
- _BTree
- Implement Partial RangeReplaceableCollection
- Implement Sequence
- Add high performance linear iterator
Minor Changes:
- Benchmarks
- Clean up benchmarks
- _Node.UnsafeHandle
- @freeze enum InsertionResult
- _Node.Storage
- Use UnsafeMutablePointer instead of ManagedBuffer
Refactors:
- Various refactors for method signatures and documentation.
|
2021-08-09 19:13:50 -07:00 |
|
Vihan Bhargava
|
3d5d5acb5b
|
Implement B-Tree deletion and respective tests.
Key Changes:
- Implement removal through SortedDictionary subscript
- Implement _BTree.contains for efficient existence checking
- Add tests
- _Node.UnsafeHandle.rotation/collapse tests
- _BTree.removeAny tests
- Expand benchmarks
- Add C++ reference lookup benchmarks
- Correct old benchmarks
Minor Changes:
- Remove B-Tree benchmarks, correct SortedDictionary benchmarks
- Adjust debug B-Tree printer to show both numElements and numTotalElements
- Add total count synchronization invariant check
- Implement CustomReflectable for B-Tree
|
2021-08-09 19:13:50 -07:00 |
|
Vihan Bhargava
|
9cf2cdadc0
|
Initial commit for SortedCollections
Signed-off-by: Vihan Bhargava <vihan_bhargava@apple.com>
|
2021-08-09 19:13:41 -07:00 |
|