Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile snapshots using Swift 6 Language Mode #101

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

liamnichols
Copy link
Owner

While testing in preparation for 0.5.1, I realised that I am missing tests to ensure that the generated source actually compiles in Swift 6 language mode.

When adding them, I found that LocalizableStringResource.Localizable fails to compile when public because it's not annotated as Sendable. Therefore I also added this annotation.

Copy link

✅ Pull Request passed benchmark checks

Summary

Wed Jun 19 13:27:54 UTC 2024

New baseline 'pull_request' is WITHIN the 'main' baseline thresholds.


Comparing results between 'main' and 'pull_request'

Host 'Mac-1718802197949.local' with 3 'arm64' processors with 7 GB memory, running:
Darwin Kernel Version 23.5.0: Wed May  1 20:12:39 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_VMAPPLE

XCStringsToolBenchmarks

StringGenerator.generateSource(for:tableName:accessLevel:) metrics

Time (total CPU) (ms) * p0 p25 p50 p75 p90 p99 p100 Samples
main 880 880 880 904 904 904 904 2
pull_request 882 882 882 904 904 904 904 2
Δ 2 2 2 0 0 0 0 0
Improvement % 0 0 0 0 0 0 0 0

@liamnichols liamnichols marked this pull request as ready for review June 19, 2024 13:38
@liamnichols liamnichols merged commit 7a34609 into main Jun 19, 2024
13 checks passed
@liamnichols liamnichols deleted the ln/swift-6-language-mode branch June 19, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant