Vihan Bhargava
|
98f278545d
|
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.
|
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
|
817c97a403
|
Implement initial SortedDictionary API and implementations for SortedSet.
Key Changes:
- SortedSet
- Implement BidirectionalCollection
- SortedDictionary
- Implement Codable
- Implement Partial RangeReplaceableCollection
- Includes remove*() operations
- init(grouping:by:)
- var keys: Keys (aka SortedSet<Key>)
- func (compact)mapValues(_:)
Minor Changes:
- Correct time documented complexities of various methods
- Implement more variations of removal methods.
|
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 |
|