Skip to content

perf(github): serve Git blobs by SHA from the cache without revalidating - #183

Merged
sweepies merged 1 commit into
mainfrom
perf/immutable-blobs
Nov 4, 2026
Merged

sweepies merged 1 commit into
mainfrom
perf/immutable-blobs

Conversation

@sweepies

@sweepies sweepies commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Finding #2 from the speed survey: every warm scan that re-reads files asked GitHub whether each blob had changed, though a blob's SHA names its content. Client::get_immutable returns a cached success under the same credential-scoped key without a request; the engine reads blobs through it. Other GETs still revalidate. The new test checks one request for two reads, that an ordinary GET still revalidates, and that another credential has its own entries.

View guided diff Turn on auto-fix

A blob's SHA names its content, so asking GitHub whether it changed is a
wasted round trip on every warm scan that reads files again. `get_immutable`
returns a cached success under the same credential-scoped key, and the
engine reads blobs through it.
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