Karoy Lorentey
3cc5a3888a
_Rope: Add a leaf node reference to indices. Implement explicit index invalidation
2023-03-20 13:12:09 -07:00
Karoy Lorentey
8f48c3ae37
More assorted bug fixes and refinements
2023-03-20 13:12:09 -07:00
Karoy Lorentey
8c1740ad28
_Rope.Index: Merge height into UInt64 storage.
...
This leaves 56 bits for path data, which should still be plenty.
(We want to allow big strings to grow to 2^48 UTF-8 code units, to
match the standard String; however, there is no practical need to
support any more, and even that is a stretch.)
Add tests to verify that the tree capacity matches expectations
in Release builds. (In Debug builds, we limit the maximum node size,
which drastically reduces capacity. This is okay.)
2023-03-20 13:12:09 -07:00
Karoy Lorentey
67a149da6a
_BString: Set better max node size in Release builds
...
Also, adjust minimum node size calculation to match classic B-trees.
2023-03-20 13:12:09 -07:00
Karoy Lorentey
8c8cb5622b
Restrict BIgString and _BString to Swift 5.8 and macOS 13.3 /iOS 16.4/etc
...
These types heavily rely on stdlib functionality that ships in
Swift 5.8; they do not run correctly on earlier releases.
2023-03-20 13:12:09 -07:00
Karoy Lorentey
283d4071bc
Assorted bug fixes and refinements
2023-03-20 13:12:08 -07:00
Karoy Lorentey
96aebb90b7
Fix initializing a String from a _BString slice
2023-03-20 13:12:08 -07:00
Karoy Lorentey
18aa309f75
Generalize some _BString iterators
2023-03-20 13:12:07 -07:00
Karoy Lorentey
eabd941799
Add some operations taking subsequences
2023-03-20 13:12:07 -07:00
Karoy Lorentey
150a165d73
Add experimental rope implementation
2023-03-20 13:11:21 -07:00
Karoy Lorentey
8c7b8536ea
[cmake] Update CMake configuration
2022-11-30 16:34:49 -08:00
Karoy Lorentey
531d2e60e6
Merge pull request #247 from lorentey/fix-TreeDictionary-merge
...
[TreeDictionary] Fix in-place merge operation to properly update the count
2022-11-30 16:15:47 -08:00
Karoy Lorentey
b8ed495036
[TreeDictionary] Add some more missing _invariantCheck calls, for good measure
2022-11-30 14:37:56 -08:00
Karoy Lorentey
c59ea2ad51
[TreeDictionary] merge: Update counts properly
2022-11-30 14:30:25 -08:00
Karoy Lorentey
5b37259155
[TreeDictionary] merge: Add missing invariant checks
...
The lack of these calls allowed our tests to pass even though the
implementation is failing to properly update the count. D’oh!
This and the previous commits adds a myriad new test failures.
2022-11-30 14:29:53 -08:00
Karoy Lorentey
a6392bf578
[test] expectEqualDictionaries: Also compare counts, as a fallback in case of missing invariant checks
2022-11-30 14:27:47 -08:00
Karoy Lorentey
edc166e979
Merge pull request #242 from lorentey/HashTreeCollections
2022-11-28 23:36:21 -08:00
Karoy Lorentey
aeac06544e
Merge pull request #245 from lorentey/unify-unsafe-bitsets
...
Fix warnings in development versions of Swift
2022-11-28 22:06:07 -08:00
Karoy Lorentey
69768b6eac
[OrderedCollections, BitCollections] Fix more warnings in development versions of Swift
2022-11-28 21:53:06 -08:00
Karoy Lorentey
3d66da5f5b
[Xcode] Adjust scheme for Collections module
2022-11-28 21:35:39 -08:00
Karoy Lorentey
24adfd8f29
[HashTreeCollections] Update links in docs
2022-11-28 21:35:39 -08:00
Karoy Lorentey
b8ef14f0c0
ShareableHashedCollections → HashTreeCollections
2022-11-28 21:35:37 -08:00
Karoy Lorentey
8cc18a2fe5
Merge pull request #244 from lorentey/unify-unsafe-bitsets
...
Unify unsafe bit set implementations
2022-11-28 21:33:11 -08:00
Karoy Lorentey
d1f1ab0808
Merge pull request #243 from lorentey/fix-missing-import
...
[ShareableHashedCollections] Add missing import
2022-11-28 17:36:11 -08:00
Karoy Lorentey
a2f4b18ae0
[BitSet, OrderedCollections] Unify UnsafeBitSet implementations
2022-11-28 16:30:55 -08:00
Karoy Lorentey
2c33149e4e
[ShareableHashedCollections] Add missing import
2022-11-23 15:45:14 -08:00
Karoy Lorentey
c80b844e5e
Merge pull request #240 from lorentey/fix-benchmark-libraries
...
[Benchmarks] Split default huge library up into individual files, one per type
2022-11-10 11:33:15 -08:00
Karoy Lorentey
ff85ea9e4f
[Benchmarks] Split default huge library up into individual files, one per type
2022-11-09 19:34:58 -08:00
Karoy Lorentey
b66cf9e4d2
Merge pull request #238 from lorentey/ShareableHashedCollections
...
[ShareableHashedCollections] API Review: add missing `mutating` keywords
2022-11-09 18:35:36 -08:00
Karoy Lorentey
339f167745
[ShareableHashedCollections] API Review: add missing mutating keywords
2022-11-07 18:53:07 -08:00
Karoy Lorentey
94cb3b6792
Merge pull request #237 from lorentey/ShareableHashedCollections
...
Apply changes from in-progress review thread
2022-11-07 18:44:55 -08:00
Karoy Lorentey
98d519ec12
[ShareableHashedCollections] Update link in API review document
2022-11-07 18:26:38 -08:00
Karoy Lorentey
9f858929b4
[ShareableHashedCollections] Remove fluent operations
2022-11-07 18:21:24 -08:00
Karoy Lorentey
bab7b7a373
[ShareableHashedCollections] Update API review document
2022-11-07 18:10:16 -08:00
Karoy Lorentey
b985c6bc1d
[Benchmarks] Update/fix ShareableSet benchmarks
2022-11-07 18:10:16 -08:00
Karoy Lorentey
d9861ab322
[ShareableDictionary] Add removeAll(where:)
2022-11-07 18:10:16 -08:00
Karoy Lorentey
b3884de332
[ShareableHashedCollections] Update DocC links 🙄
...
Also, put `removeAll(where:)` in the right category
2022-11-07 18:10:16 -08:00
Karoy Lorentey
e8fc3ee4cd
[PersistentCollections] Rename to SharableHashedCollections
...
`PersistentSet` → `ShareableSet`
`PersistentDictionary` → `ShareableDictionary`
`PersistentCollections` → `ShareableHashedCollections`
2022-11-07 18:10:16 -08:00
Karoy Lorentey
1098c52654
Add API review proposal for PersistentCollections
2022-11-07 18:10:15 -08:00
Karoy Lorentey
84e324dc45
[Benchmarks] Add the model diffing tasks to the PersistentSet library
2022-11-06 13:20:50 -08:00
Karoy Lorentey
a7411c59bc
[PersistentSet] Add removeAll(where:)
2022-11-06 13:18:22 -08:00
Karoy Lorentey
80195a8374
[PersistentSet] Add fixmes for in-place reductions
2022-11-06 12:31:16 -08:00
Karoy Lorentey
9a92eaeac3
[PersistentSet] Clarify note on isEqualSet
2022-11-06 12:30:43 -08:00
Karoy Lorentey
ff561141d8
Merge pull request #235 from lorentey/PersistentCollections-review-prep
...
[PersistentCollections] Doc & benchmark updates in preparation of API review
2022-11-01 11:06:47 -07:00
Karoy Lorentey
ff2d526c1b
[PersistentDictionary] Doc fixes
2022-10-31 17:27:49 -07:00
Karoy Lorentey
7d0d627f44
[PersistentSet] Fix doc typo
2022-10-31 17:20:15 -07:00
Karoy Lorentey
898d3c9a51
[PersistentCollections] Doc & benchmark updates in preparation of API review
2022-10-31 16:45:42 -07:00
Karoy Lorentey
0e230a95fb
Merge pull request #234 from lorentey/fix-isEqual-naming
...
[SetAlgebra types] isEqual(to:) → isEqualSet(to:)
2022-10-31 16:44:51 -07:00
Karoy Lorentey
581490a735
[CMake] Update CMakeLists.txts
2022-10-31 15:10:11 -07:00
Karoy Lorentey
8f7d5fd505
[SetAlgebra types] isEqual(to:) → isEqualSet(to:)
...
The `isEqual(to:)` methods are a bit too confusing — they implement
mathematical set comparisons (ignoring element ordering and, in the
case of the Sequence variant, even element multiplicities), so it
seems better to highlight this by putting a `Set` in the name.
2022-10-31 15:05:12 -07:00