Repository navigation
Conversation
zanieb
marked this pull request as ready for review
July 29, 2026 23:48
|
Promoted to #20805. |
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.
uv#19662 started hashing every downloaded wheel and source distribution so that a cached distribution can be reused when a later operation requires its hash. On ARM,
sha2computes those hashes in software.Enable the
sha2assembly backend on non-Windowsaarch64, allowing wheel and source distribution downloads to use ARM SHA-256 instructions. This preserves the caching behavior from uv#19662 and also speeds upuv sync, which already verified lockfile hashes before that change.I ran uv's standard cold and warm installation benchmarks against Trio's 41 documentation dependencies on a dedicated Apple Silicon Namespace runner. Each version was measured in 40 randomized, interleaved rounds. Times are means; changes are relative to
mainwith paired-bootstrap 95% confidence intervals from 20,000 resamples.Wall time (ms):
0.11.180.11.19mainuv pip syncuv syncuv pip syncuv syncUser CPU time (ms):
0.11.180.11.19mainuv pip syncuv syncuv pip syncuv sync0.11.18predates uv#19662, and0.11.19includes it. That change increased cold package-install wall time by 14.4% [11.3%, 17.9%] and user CPU by 29.0% [26.5%, 32.2%]. Hardware acceleration returns package-install user CPU to within 5.6% of the original baseline while preserving distribution hashes. Warm-install intervals overlap zero.Separately, hashing a 9.7 MiB wheel 40 times improved from 1,076.5 ms to 208.2 ms on macOS ARM (5.2×) and from 1,234.2 ms to 204.2 ms on Linux ARM (6.0×).