Repository navigation
release: 3.0.0-alpha.19 - #23
Merged
Merged
Conversation
…(about 30x faster for Double callers); performance guard The toolkit and the penalised logistic fit were generic with no Double version, so a caller in another module paid a runtime type lookup per operation. Adds @_specialize(exported: true, where T == Double) to the public entry points, a release-only guard that times each heavy entry point against a plain Double evaluation, a CHANGELOG entry and an ADR-011 addendum. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017dtpLZ6XGCJVmSqc1u4qUt
…ery specialised entry point, drop attributes that gain nothing Measured specialised against unspecialised for each public entry point; the model initialiser, featureCounts and summary gain nothing and lose the attribute. The guard now bounds all eleven that matter (data construction, scores, perGroup, pooledEvaluation, fitScale and referenceFit added). CHANGELOG and the ADR-011 addendum carry the measured ratios. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017dtpLZ6XGCJVmSqc1u4qUt
…two attributes that gain nothing Mutation audit: removing the attribute from the dense or ranked GroupedChoiceData initialiser was not caught (the guard only built from sparse rows); it now bounds both (165 and 177 plain evaluations unspecialised against 8.6 and 8.7). referenceFit and the negativeLogLikelihood(fit) wrapper measure the same with and without the attribute, so it comes off them. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017dtpLZ6XGCJVmSqc1u4qUt
Raise the minimum swift-crypto to 5.1.2. The grouped-ranking speed fix (already on this branch) moves from Unreleased into the release. CHANGELOG, README and master plan reconciled. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017dtpLXUs8Gv19sbPC1h3yS
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017dtpLXUs8Gv19sbPC1h3yS
…nnot install 6.3 or 6.4) setup-swift@v2 fails on 6.3 and 6.4; SwiftyLab/setup-swift installs from swift.org directly and tracks current releases. Pinned to the v1.14.2 commit. swift-crypto 5.1.2 does not compile on 6.2.1 (@nonexhaustive). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017dtpLXUs8Gv19sbPC1h3yS
…e-checker timeouts in 25 test files on Linux, to investigate) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017dtpLXUs8Gv19sbPC1h3yS
…ck them Written inline in @test(arguments:), the six tuples with Double.pi arithmetic were type-checked as one macro-expanded expression, and 6.4.3 on Linux reported 'unable to type-check this expression in reasonable time' (the only diagnostic in the failing CI run). Same cases, now a typed static constant. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017dtpLXUs8Gv19sbPC1h3yS
Found by running the whole suite on a Linux x86_64 machine with Swift 6.4.2, not by CI. swift-foundation on Linux traps (SIGILL) on a NaN Date in Calendar.dateComponents (with seconds or nanoseconds requested) and Calendar.startOfDay(for:); year-only answers Int.max where Darwin and 6.2.1 answered 4713. Each case runs in its own exit test, recorded as a known issue so it fails the day Foundation stops trapping. Dated notes in the three Period source headers. CHANGELOG records the platform difference and the verified versions. Linux: 9811 tests, 948 suites passed, 3 known issues. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017dtpLXUs8Gv19sbPC1h3yS
The limit was one minute; the test takes 73 s alone on an idle 12-core Linux machine and 184-214 s on the 4-core CI runner, where all tests start at once and the CPU-bound ones starve the rest. Swift 6.2.1 did not trip it at 214 s; 6.4.2 does. Ten minutes, as a hang guard. Full suite on Linux pinned to 4 cores: 9811 tests passed, 3 known issues. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017dtpLXUs8Gv19sbPC1h3yS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LogisticRegression.fit(penalty:)are specialised forDouble(@_specialize(exported: true, where T == Double)), so cross-module callers run about 30x faster. No API or result change.GroupedRankingPerformanceTestsguards every entry point (optimised build only).SHA256.hash(data:).Verification
quality-gate --check all --strict: PASSED, 51 of 51 checkers (consistencyskipped, not configured).swift test -c release --filter GroupedRankingPerformanceTests: 2 tests passed.BusinessMathbuilds on macOS. A Linux/Android build was not run. Packages that pin swift-crypto below 5 will fail to resolve until they move.🤖 Generated with Claude Code
https://claude.ai/code/session_017dtpLXUs8Gv19sbPC1h3yS