Karoy Lorentey
f504716c27
Update README for 1.0.3
1.0.3
2022-09-01 17:32:57 -07:00
Karoy Lorentey
a9e2276472
Merge pull request #168 from lorentey/cherry-pick-1.0.3
...
Cherry pick recent fixes to release/1.0 in preparation of tagging 1.0.3
2022-09-01 17:21:25 -07:00
Karoy Lorentey
96c9d7a782
Merge pull request #169 from lorentey/fix-call-site-ambiguities
...
[OrderedDictionary] Resolve call-site ambiguities
2022-09-01 17:14:53 -07:00
Karoy Lorentey
71aa4a39ae
[OrderedDictionary] Resolve spurious(?) call-site ambiguities
2022-08-31 17:57:24 -07:00
Karoy Lorentey
b379fa7aee
[OrderedCollections] Force-inline all _modify accessors
...
(cherry picked from commit ee1b2de06e )
2022-08-31 17:13:53 -07:00
Karoy Lorentey
eb541ed4c6
[Deque] Add direct benchmarks for indexing subscript’s _modify accessor
...
(cherry picked from commit c82261a529 )
2022-08-31 17:13:53 -07:00
Karoy Lorentey
d5bd858758
[Deque] Fix testing in DequeModule.xcscheme
...
(cherry picked from commit 0a26362226 )
2022-08-31 17:13:53 -07:00
Karoy Lorentey
87c78de6b4
[Deque] Force-inline the subscript’s _modify accessor to work around a performance issue
...
Resolves #164 .
(cherry picked from commit 98cd753866 )
2022-08-31 17:13:53 -07:00
Karoy Lorentey
6cbecdb467
[OrderedSet] Work around weird name lookup issue in compiler
...
Resolves #157 .
(cherry picked from commit 1071b37294 )
2022-08-31 17:13:53 -07:00
Karoy Lorentey
d0f05d5cf5
[OrderedCollection] Use standard temp allocation facility, if available
...
The 5.6 stdlib introduced a new facility for temporary allocations
that promises better performance than direct allocations. Use it when
the toolchain version is above 5.6.
(cherry picked from commit ddb6d141b3 )
2022-08-31 17:13:53 -07:00
Karoy Lorentey
ac20a2c31d
[Xcode] Update schemes & file template
...
Update Collections scheme with support for testing.
Update the copyright year in file template.
(cherry picked from commit 3437abecc4 )
2022-08-31 17:13:53 -07:00
Karoy Lorentey
4908474e30
Fixup schemes
2022-08-31 17:06:34 -07:00
Karoy Lorentey
b816872d24
swift-collections.xcworkspace: Update dependencies
...
(cherry picked from commit 00a99aa77c )
2022-08-31 17:03:08 -07:00
Karoy Lorentey
8611b32dfe
Set up shared schemes in the xcworkspace under Utils/
...
(cherry picked from commit 3fce10a45a )
2022-08-31 17:03:03 -07:00
Hector Matos
85576263f6
Update .gitignore
...
(cherry picked from commit 7016a13f0e )
2022-08-31 17:02:38 -07:00
Hector Matos
3c856903e5
Delete .swiftpm directory
...
(cherry picked from commit 480b0af010 )
2022-08-31 17:02:19 -07:00
Karoy Lorentey
fe94c36ad2
Merge pull request #153 from lorentey/issue145
...
[OrderedDictionary][doc] Update docs for merge/filter operations
2022-05-23 16:26:53 -07:00
Karoy Lorentey
6cb037037d
[OrderedDictionary][doc] Update docs for merge/filter operations
...
Resolves #145
2022-05-23 16:17:35 -07:00
Karoy Lorentey
20e7fceec8
Merge pull request #140 from apple/fix-OrderedDictionary-grouping-inference
...
[OrderedDictionary] Fix type inference issue with `OrderedDictionary.init(grouping:by:)`
2022-02-09 11:55:48 -08:00
Karoy Lorentey
50e6a1ac71
[OrderedDictionary] Fix type inference issue with OrderedDictionary.init(grouping:by:)
...
This adds a new overload to help the type checker infer `[S.Element]` as the default `Value` type.
Resolves #139 .
2022-02-08 14:16:18 -08:00
Karoy Lorentey
48254824bb
Merge pull request #113 from lorentey/deque-scaling
...
[Deque] `append(contentsOf:):` Use exponential capacity reservation
1.0.2
2021-11-15 16:15:59 -08:00
Károly Lőrentey
efefae5653
[Deque] append(contentsOf:): Use exponential capacity reservation
...
Depending on the supplied sequence, `Deque.append(contentsOf:)` currently reserves just enough capacity as it needs to perform the append. This isn't right -- it can result in O(n) reallocs instead of O(log(n)) when items are incrementally appended in constant-sized `append(contents:)` batches.
2021-11-15 16:12:28 -08:00
Karoy Lorentey
1337897dc6
Merge pull request #128 from lorentey/full-test-improvements
...
[Utils] run-full-tests.sh: Add support for testing on Swift 5.3 without manual editing
2021-11-15 16:05:40 -08:00
Karoy Lorentey
9dde4b5603
[Utils] run-full-tests.sh: Add support for testing on Swift 5.3 without manual editing
2021-11-15 15:46:12 -08:00
Karoy Lorentey
da3a73ed90
Merge pull request #126 from lorentey/full-test-improvements
...
[Utils] run-full-tests.sh: Keep going after a failure
2021-11-15 14:50:57 -08:00
Károly Lőrentey
ddc8b9c66d
[Utils] run-full-tests.sh: Keep going after a failure
2021-11-15 14:08:09 -08:00
Karoy Lorentey
c86bf6adf0
Merge pull request #123 from lorentey/fix-OrderedSet
...
[OrderedSet] Add missing uniqueness check
2021-11-12 17:09:27 -08:00
Károly Lőrentey
074b0ad213
[OrderedSet] Add missing uniqueness check in OrderedSet._insertNew(_:at:in:)
2021-11-11 00:40:01 -08:00
Károly Lőrentey
13b5889757
[OrderedCollections][test] Strengthen withHiddenCopies tests
...
`withHiddenCopies(if:of:)` is supposed to check for value semantic violations where mutations of one copy affect another -- however, it currently only checks that iteration returns the same items before/after the change, not that the old copy is still in a fully consistent state.
Add an extra parameter that can be set to a closure that performs stricter checks.
Use it to call `_checkInvariants()` in ordered collections tests, uncovering a missing uniqueness check in `OrderedSet._insertNew(_:at:in:)`.
2021-11-11 00:39:29 -08:00
Karoy Lorentey
2d33a0ea89
Merge pull request #111 from neonichu/fix-aarch64
...
[CMake] Match lowercase "aarch64"
1.0.1
2021-09-14 12:05:08 -07:00
Karoy Lorentey
20784100fd
Merge pull request #112 from lorentey/OrderedSetAlgebra
...
[OrderedSet][doc] Fix thinko
2021-09-14 12:01:03 -07:00
Karoy Lorentey
7f57a0ed1c
[OrderedSet][doc] Fix thinko
2021-09-14 11:50:31 -07:00
Boris Buegling
39a16a15cc
[CMake] Match lowercase "aarch64"
...
Seems like it is also possible for "aarch64" to be spelled lowercase, this fixes building on Ubuntu on arm at least.
2021-09-13 16:30:41 -07:00
Karoy Lorentey
07e47b1e93
Merge pull request #110 from lorentey/burn-again-shell
...
[run-full-tests.sh] Fix bashism: == vs =
1.0.0
2021-09-10 14:10:14 -07:00
Karoy Lorentey
103008aca4
[run-full-tests.sh] Fix bashism: == vs =
2021-09-10 13:57:23 -07:00
Karoy Lorentey
37e15aed66
Merge pull request #107 from lorentey/let’s-table-that
...
[OrderedSet] Don't let the unchecked init create large sets with no hash table
2021-09-10 11:15:36 -07:00
Karoy Lorentey
f69104b507
[OrderedSet] Don't set a default value for the primary initializer's second argument
...
This will hopefully prevent issues like the one fixed in the previous commit from reoccurring in the future.
2021-09-09 16:44:06 -07:00
Karoy Lorentey
e4f62c1520
[OrderedSet] Don't let the unchecked init create large sets with no hash table
...
In debug builds, the `OrderedSet.init(uncheckedUniqueElements:)` initializer always created a set with no hash table, even if it had an element count >15. This is technically an invariant violation (caught by `_checkInvariants()`), although it generally only triggers (very) slow performance. (The set reverts to linear searching.)
2021-09-09 16:44:06 -07:00
Karoy Lorentey
95fa069858
Merge pull request #106 from lorentey/check-please
...
[1.0][OrderedSet] Make _checkInvariants public and call it in more operations
2021-09-09 11:46:12 -07:00
Karoy Lorentey
96100d4b6a
[NFC] Cosmetic/doc updates
2021-09-08 21:12:52 -07:00
Karoy Lorentey
e959a64528
[OrderedDictionary] Add some more _checkInvariants() calls
2021-09-08 21:12:52 -07:00
Karoy Lorentey
1ae008a410
[OrderedSet] Make _checkInvariants public and call it in more operations
...
It seems useful to be able to manually call `_checkInvariants` while debugging a package issue. This is public as in `public`, not public as in Public API -- it's underscored.
2021-09-08 21:12:52 -07:00
Karoy Lorentey
4e4bad9c30
Merge pull request #102 from lorentey/release-prep
...
1.0 release preparations
2021-09-08 11:50:55 -07:00
Karoy Lorentey
8303a77bc2
[Utils] run-full-tests.sh: Add disclaimer about needing to tweak the script sometimes
2021-09-07 14:51:02 -07:00
Karoy Lorentey
227710b76f
Update xcodebuild schemes
2021-09-03 19:40:09 -07:00
Karoy Lorentey
4520853f49
Update README for 1.0
2021-09-03 19:11:29 -07:00
Karoy Lorentey
9adbe3e87b
[docs] Add a release checklist
2021-09-03 19:11:29 -07:00
Karoy Lorentey
9d4bb8cdf8
[OrderedDictionary] Remove deprecated API
...
Mark the deprecated `subscript(offset:)` and `modifyValue(...)` APIs unavailable and replace their bodies with fatalError().
2021-09-03 19:11:29 -07:00
Karoy Lorentey
6fbf995006
[Utils] Add run-full-tests.sh script
...
This script builds and tests the package a tiny fraction of the full support matrix. It's useful for prerelease testing.
2021-09-03 15:58:19 -07:00
Karoy Lorentey
f1f48d569a
[test] CollectionsTestSupport → _CollectionsTestSupport
...
The underscored module name makes it clear that this isn't public API.
2021-09-03 15:57:09 -07:00