Karoy Lorentey
fda65e149b
[BasicContainers] Hashed containers: Make _checkInvariants() dump the hash table on failure
2026-03-11 00:31:37 -07:00
Karoy Lorentey
16e7715941
[BasicContainers] Speed up removals from hashed containers
2026-03-10 23:50:41 -07:00
Karoy Lorentey
a8cf90f49c
[BasicContainers] Hashed containers: slightly improve maxProbeLength after removals
2026-03-10 23:50:40 -07:00
Karoy Lorentey
5636b32db7
[BasicContainers] Scramble small hashed containers
...
Don’t just append new items to the end of storage — it misleads clients into assuming that the containers preserve insertion order, when they most certainly don’t do that.
Instead, insert new items into the middle of storage, using an extra swap.
2026-03-10 23:06:08 -07:00
Karoy Lorentey
e69d570c59
[BasicContainers] Implement shortcut for insertions
...
We don’t need to calculate the probe length of the item currently occupying the new item’s ideal bucket — it cannot possibly be lower than the new item’s. This spares one hash operation during insertions that result in a hash collision.
2026-03-10 23:06:08 -07:00
Karoy Lorentey
2a53ad50b0
[BasicContainers] Fix insertion algorithm
...
Due to a number of cascading off-by-one errors, the maximum probe length could end up getting set lower than the actual value, _sometimes_ rendering some items unreachable.
Weirdly, the issue seems to be rare enough that it somehow never triggered in any of my previous test runs.
2026-03-10 23:06:07 -07:00
Karoy Lorentey
ccf3d3a254
[BasicContainers] Use the new _checkInvariants feature in RigidSet tests
...
Additionally, add some more tests that exercise various hashing outcomes.
2026-03-10 23:06:05 -07:00
Karoy Lorentey
634a0ae766
[BasicContainers] Implement _checkInvariants on hashed containers
2026-03-10 23:04:49 -07:00
Karoy Lorentey
6ff1e8e636
Merge pull request #558 from swift-android-sdk/enable_android_sdk_checks
...
[CI] Enable Android testing
2026-03-09 18:59:39 -07:00
Marc Prud'hommeaux
417bcbc6e3
Disable RigidDequeCrashTests on Android due to lack of exit testing
2026-03-09 20:15:46 -04:00
Marc Prud'hommeaux
ab483f1199
Merge branch 'apple:main' into enable_android_sdk_checks
2026-03-09 20:01:01 -04:00
Karoy Lorentey
41beccbd44
Merge pull request #598 from lorentey/remove-BorrowingSequence.first
...
[ContainersPreview] Remove BorrowingSequence.first
2026-03-09 16:40:18 -07:00
Karoy Lorentey
63030a3530
Merge pull request #599 from lorentey/generateNext-to-next
...
[ContainersPreview] Rename Producer.generateNext() to next()
2026-03-09 16:37:58 -07:00
Karoy Lorentey
9c1a633c98
Merge pull request #594 from apple/dependabot/github_actions/swiftlang/github-workflows/dot-github/workflows/swift_package_test.yml-0.0.8
...
Bump swiftlang/github-workflows/.github/workflows/swift_package_test.yml from 0.0.7 to 0.0.8
2026-03-09 16:35:38 -07:00
Karoy Lorentey
b420b0d2b3
Merge pull request #597 from lorentey/fix-standalone-traits
...
[BasicContainers] Allow standalone use of the UnstableHashedContainers trait
2026-03-09 16:35:24 -07:00
Karoy Lorentey
3826fe76a8
[ContainersPreview] Rename Producer.generateNext() to next()
...
This better highlights the symmetry between it and the classic method on `IteratorProtocol`, and is also a nice usability win.
2026-03-09 16:22:24 -07:00
Karoy Lorentey
7d69e780ae
Merge pull request #596 from lorentey/doc-fixes
...
Documentation updates for latest DocC
2026-03-09 16:15:09 -07:00
Karoy Lorentey
3b10b992bc
[ContainersPreview] Remove BorrowingSequence.first
...
This property is unnecessary; it was just demonstrating an old problem. It clashes with the classic `Collection.first`, and that renders invocations of that ambiguous in code that uses Collection types that also have a BorrowingSequence conformance.
2026-03-09 16:11:56 -07:00
Karoy Lorentey
de436301e5
[BasicContainers] Allow standalone use of the UnstableHashedContainers trait
...
Oops, I lost a change that allowed enabling the UnstableHashedContainers trait without also opting into UnstableContainersPreview. Reimplement this functionality.
2026-03-09 15:59:38 -07:00
Karoy Lorentey
fcdacbbaa2
Merge pull request #595 from apple/dependabot/github_actions/swiftlang/github-workflows/dot-github/workflows/soundness.yml-0.0.8
...
Bump swiftlang/github-workflows/.github/workflows/soundness.yml from 0.0.7 to 0.0.8
2026-03-09 14:37:46 -07:00
Karoy Lorentey
79b2624b2c
[doc] Fix link syntax in TrailingElementsModule
2026-03-09 14:31:54 -07:00
Karoy Lorentey
93a98ca26d
[doc] Clean out stale documentation files in the Collections module
2026-03-09 14:15:17 -07:00
Karoy Lorentey
80878519f2
[doc] Fix most issues reported by docc
...
DocC keeps changing its link syntax. The latest iteration appears to have trouble dealing with `Self`-taking or `Self`-returning methods, so change our API to replace `Self` with a direct mention of the concrete type. ¯\\\_(ツ)\_/¯
That said, the new compiler also found a large number of mismatching parameter names, and that was really helpful.
2026-03-09 14:14:51 -07:00
Marc Prud'hommeaux
59a82ee1b0
Update pull_request.yml to use swiftlang/github-workflows version 0.0.8
2026-03-09 15:25:04 -04:00
Karoy Lorentey
c29d1e9c4e
[doc] Update to better link syntax
2026-03-09 12:04:43 -07:00
Marc Prud'hommeaux
0556a233e1
Merge branch 'apple:main' into enable_android_sdk_checks
2026-03-09 14:38:55 -04:00
Karoy Lorentey
db3cc4bacb
Merge pull request #593 from lorentey/enforce-dress-code
...
Enforce dress code for license headers
2026-03-09 10:10:19 -07:00
dependabot[bot]
dc20489541
Bump swiftlang/github-workflows/.github/workflows/soundness.yml
...
Bumps [swiftlang/github-workflows/.github/workflows/soundness.yml](https://github.com/swiftlang/github-workflows ) from 0.0.7 to 0.0.8.
- [Release notes](https://github.com/swiftlang/github-workflows/releases )
- [Commits](https://github.com/swiftlang/github-workflows/compare/0.0.7...0.0.8 )
---
updated-dependencies:
- dependency-name: swiftlang/github-workflows/.github/workflows/soundness.yml
dependency-version: 0.0.8
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-03-09 06:15:40 +00:00
dependabot[bot]
483fa04705
Bump swiftlang/github-workflows/.github/workflows/swift_package_test.yml
...
Bumps [swiftlang/github-workflows/.github/workflows/swift_package_test.yml](https://github.com/swiftlang/github-workflows ) from 0.0.7 to 0.0.8.
- [Release notes](https://github.com/swiftlang/github-workflows/releases )
- [Commits](https://github.com/swiftlang/github-workflows/compare/0.0.7...0.0.8 )
---
updated-dependencies:
- dependency-name: swiftlang/github-workflows/.github/workflows/swift_package_test.yml
dependency-version: 0.0.8
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-03-09 06:15:38 +00:00
Karoy Lorentey
11443c0531
Enforce uniform license headers
2026-03-07 10:26:28 -08:00
Karoy Lorentey
2bd5793808
Set license header template and enable license enforcement
2026-03-07 10:26:27 -08:00
Karoy Lorentey
7631e2aaf7
Remove obsolete CI configuration files
2026-03-07 10:26:25 -08:00
Karoy Lorentey
7ad524e4e4
Merge pull request #592 from lorentey/floats-not-allowed-in-this-pool
2026-03-06 20:30:46 -08:00
Karoy Lorentey
e4721c4b6b
Merge pull request #591 from lorentey/update-readme
...
Add some decorative badges in the README
2026-03-06 18:48:05 -08:00
Karoy Lorentey
ee9808c72f
[Dequemodule, OrderedCollections] Avoid using floating point arithmetic
2026-03-06 18:19:16 -08:00
Karoy Lorentey
ccf872ae97
Add some decorative badges in the README
2026-03-06 18:15:42 -08:00
Karoy Lorentey
8d9834a618
Merge pull request #590 from lorentey/prerelease-tasks
...
[BasicContainers] RigidArray: Correct spelling of replacement for deprecated method
1.4.0
2026-03-06 16:28:20 -08:00
Karoy Lorentey
94e8cabe4b
[BasicContainers] RigidArray: Correct spelling of replacement for deprecated method
2026-03-06 16:10:48 -08:00
Karoy Lorentey
d5711fea62
Merge pull request #589 from lorentey/prerelease-tasks
...
[BasicContainers] Avoid defining set/dictionary types unless UnstableHashedContainers is enabled
2026-03-06 12:07:23 -08:00
Karoy Lorentey
5605e14682
[BasicContainers] Avoid defining set/dictionary types unless UnstableHashedContainers is enabled
2026-03-06 11:17:39 -08:00
Karoy Lorentey
49d0082ece
Merge pull request #588 from lorentey/prerelease-tasks
...
Working towards the 1.4.0 tag
2026-03-05 20:16:49 -08:00
Karoy Lorentey
1c69635852
Add SPDX-License-Identifier tags
2026-03-05 19:39:24 -08:00
Karoy Lorentey
d4722f4f82
[tests] Adjust visibility of API checker protocols
2026-03-05 19:39:23 -08:00
Karoy Lorentey
11a49663d0
[Benchmarks] Update benchmarking sub-package
...
- Fix issues with the main package no longer exposing internal helper functions
- Move Rust benchmarks behind an EnableRustBenchmarks trait
- Allow traits to be enabled in `Utils/run-benchmarks.sh` through the BENCHMARK_TRAITS environment variable.
2026-03-05 19:39:22 -08:00
Karoy Lorentey
d9b09ecde8
Update copyright dates
2026-03-05 19:39:20 -08:00
Karoy Lorentey
334dcb07d7
Merge pull request #587 from lorentey/update-readme
...
Update README for 1.4.0
2026-03-05 17:15:34 -08:00
Karoy Lorentey
b29e7861b2
Update build configurations
2026-03-05 15:33:27 -08:00
Karoy Lorentey
214d75cb73
BorrowingSequence: estimatedCount ⟹ underestimatedCount
...
EstimatedCount is largely pointless. Knowing the exact count does enable a fast negative path for `elementsEqual`, but we can otherwise make do with just the (much simpler to understand/deal with) `underestimatedCount` that already exists on `Sequence`.
2026-03-05 15:33:27 -08:00
Karoy Lorentey
4160bcb98d
[BasicContainers] RigidDictionary, UniqueDictionary: Add debugging methods
2026-03-05 15:33:25 -08:00
Karoy Lorentey
cef50eee26
[BasicContainers] Fix incorrect wraparound implementation in hashed container insertions with NO_ROBIN_HOOD_HASHING
2026-03-05 15:30:10 -08:00