Skip to content

Cache unit hashes and output directory paths - #180

Open
charliermarsh wants to merge 1 commit into
charlie/uv-defer-git-initializationfrom
charlie/uv-cache-unit-paths-stack179
Open

charliermarsh wants to merge 1 commit into
charlie/uv-defer-git-initializationfrom
charlie/uv-cache-unit-paths-stack179

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

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:

Command Fewer instructions 99% confidence interval
cargo check 1.57% 1.46–1.63%
cargo test --no-run 1.55% 1.46–1.60%

The 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.

@charliermarsh
charliermarsh marked this pull request as ready for review October 21, 2026 14:03
@charliermarsh
charliermarsh added this pull request to stack #166 October 21, 2026 14:05
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.
@charliermarsh
charliermarsh removed this pull request from stack #166 October 23, 2026 16:31
@charliermarsh
charliermarsh added this pull request to stack #227 October 23, 2026 16:32
@charliermarsh
charliermarsh removed this pull request from stack #227 October 25, 2026 13:06
@charliermarsh
charliermarsh added this pull request to stack #241 October 25, 2026 13:06
@charliermarsh
charliermarsh removed this pull request from stack #241 October 27, 2026 02:57
@charliermarsh
charliermarsh added this pull request to stack #252 October 27, 2026 02:57
@charliermarsh
charliermarsh removed this pull request from stack #252 October 27, 2026 15:06
@charliermarsh
charliermarsh added this pull request to stack #255 October 27, 2026 15:06
@charliermarsh
charliermarsh removed this pull request from stack #255 October 27, 2026 21:36
@charliermarsh
charliermarsh added this pull request to stack #257 October 27, 2026 21:36
@charliermarsh
charliermarsh removed this pull request from stack #257 October 28, 2026 00:23
@charliermarsh
charliermarsh added this pull request to stack #259 October 28, 2026 00:23
@charliermarsh
charliermarsh removed this pull request from stack #259 October 28, 2026 17:21
@charliermarsh
charliermarsh added this pull request to stack #272 October 28, 2026 17:21
@charliermarsh
charliermarsh removed this pull request from stack #272 October 28, 2026 17:42
@charliermarsh
charliermarsh added this pull request to stack #273 October 28, 2026 17:42
@charliermarsh
charliermarsh removed this pull request from stack #273 October 29, 2026 04:52
@charliermarsh
charliermarsh added this pull request to stack #278 October 29, 2026 04:53
@charliermarsh
charliermarsh removed this pull request from stack #278 October 29, 2026 14:06
@charliermarsh
charliermarsh added this pull request to stack #290 October 29, 2026 14:06
@charliermarsh
charliermarsh removed this pull request from stack #290 October 30, 2026 02:25
@charliermarsh
charliermarsh added this pull request to stack #295 October 30, 2026 02:25
@charliermarsh
charliermarsh removed this pull request from stack #295 October 31, 2026 13:06
@charliermarsh
charliermarsh added this pull request to stack #329 October 31, 2026 13:07
@charliermarsh
charliermarsh removed this pull request from stack #329 October 31, 2026 18:02
@charliermarsh
charliermarsh added this pull request to stack #331 October 31, 2026 18:02
@charliermarsh
charliermarsh removed this pull request from stack #331 November 1, 2026 01:58
@charliermarsh
charliermarsh added this pull request to stack #364 November 1, 2026 01:58
@charliermarsh
charliermarsh removed this pull request from stack #364 November 1, 2026 11:41
@charliermarsh
charliermarsh added this pull request to stack #383 November 1, 2026 11:41
@charliermarsh
charliermarsh removed this pull request from stack #383 November 1, 2026 18:29
@charliermarsh
charliermarsh force-pushed the charlie/uv-cache-unit-paths-stack179 branch from c40676e to e078b78 Compare November 17, 2026 06:26
@charliermarsh
charliermarsh added this pull request to stack #542 November 17, 2026 06:29
@charliermarsh
charliermarsh force-pushed the charlie/uv-cache-unit-paths-stack179 branch from e078b78 to 8855711 Compare November 17, 2026 07:02
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