Skip to content

Skip query machinery when promoting disk-cached values - #9

Closed
charliermarsh wants to merge 1 commit into
charlie/pin-ohm-cargo-defaultsfrom
charlie/ohm-incremental-cache-promotion
Closed

charliermarsh wants to merge 1 commit into
charlie/pin-ohm-cargo-defaultsfrom
charlie/ohm-incremental-cache-promotion

Conversation

@charliermarsh

Copy link
Copy Markdown
Collaborator

Backport rust-lang/rust#158059 to the Ohm Rust 1.97.1 line. At the end of an incremental compiler session, green queries that were not needed during the current run must still be promoted from the previous on-disk cache into the next cache. Load those values directly into the in-memory query cache instead of reentering the full query execution machinery, while preserving the existing incremental fingerprint verification policy. Upstream measured 1.3% fewer instructions on average, concentrated in unchanged incremental builds, and 0.36% fewer instructions for patched incremental builds.

@charliermarsh
charliermarsh force-pushed the charlie/ohm-incremental-cache-promotion branch from e1974df to 2b19dbb Compare August 3, 2026 13:31
@charliermarsh
charliermarsh changed the base branch from charlie/ohm-emit-rlink to charlie/pin-ohm-cargo-defaults August 3, 2026 13:31
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.

2 participants