Repository navigation
Cache unit hashes and output directory paths - #180
Open
charliermarsh wants to merge 1 commit into
Open
charliermarsh wants to merge 1 commit into
charliermarsh wants to merge 1 commit into
Conversation
charliermarsh
marked this pull request as ready for review
October 21, 2026 14:03
This was referenced Oct 21, 2026
charliermarsh
added a commit
to astral-experiments/ohm
that referenced
this pull request
Oct 21, 2026
Prepare Ohm 1.99.0-7 with compact public-API metadata graphs, Cargo's warm-build overhead reductions through astral-experiments/ohm-cargo#180, compiler-scoped cache cleanup, and faster Linux formatter path resolution. The compiler's Cargo gitlink matches the release manifest. Clippy and bundled upstream Wild retain their previous pins. The optimizations guide is updated separately in #151 for review.
This was referenced Oct 21, 2026
charliermarsh
force-pushed
the
charlie/uv-cache-unit-paths-stack179
branch
from
November 17, 2026 06:26
c40676e to
e078b78
Compare
charliermarsh
force-pushed
the
charlie/uv-cache-unit-paths-stack179
branch
from
November 17, 2026 07:02
e078b78 to
8855711
Compare
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.
We cache each unit's formatted hash and output-directory path during build preparation. If shared-cache validation falls back to private outputs, we clear the cached paths so subsequent lookups use the correct directories.
In 12 paired runs on warm uv commands, this change reduced Cargo's own instruction count relative to #179:
cargo checkcargo test --no-runThe profiler excludes compiler subprocesses, and tests do not run. Wall-clock measurements were inconclusive. The measurement report contains the raw samples and reproduction instructions; earlier results are preserved separately.
A separate comparison of #177–#180 together against #176 measured 9.36% fewer Cargo instructions for warm checks and 8.21% fewer for warm test builds. These are measured combined effects, not sums of the individual results; wall-clock measurements were again inconclusive. See the combined measurements.