Franz Busch
3c373b900c
Use the defines from traits directly
...
Package traits already pass defines with their trait name when building. Instead of adding our own conditional defines based on the traits we can use the trait provided defines directly. I observed that various tooling behaves better with the trait provided defines.
2026-05-06 07:41:02 -07:00
Karoy Lorentey
1c69635852
Add SPDX-License-Identifier tags
2026-03-05 19:39:24 -08:00
Karoy Lorentey
d9b09ecde8
Update copyright dates
2026-03-05 19:39:20 -08:00
Karoy Lorentey
ab649ca5fc
Add new package trait UnstableSortedCollections
...
This re-enables the SortedCollections for easi(er) experimentation.
The module remains source unstable — it may go away entirely or it may receive arbitrary source-breaking changes in any new swift-collections release, with no special pre-announcement.
2025-10-02 17:00:32 -07:00
Karoy Lorentey
4448454fbc
[SortedCollections] Disable tests with @testable imports in release builds
2022-10-31 14:02:30 -07:00
Károly Lőrentey
8df65118eb
Merge branch 'main' into feature/SortedCollections
...
# Conflicts:
# .swiftpm/xcode/xcshareddata/xcschemes/swift-collections-Package.xcscheme
# .swiftpm/xcode/xcshareddata/xcschemes/swift-collections-benchmark.xcscheme
# Benchmarks/Benchmarks/CppBenchmarks.swift
2021-11-22 15:17:41 -08:00
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
9cf2cdadc0
Initial commit for SortedCollections
...
Signed-off-by: Vihan Bhargava <vihan_bhargava@apple.com >
2021-08-09 19:13:41 -07:00