GeezerVison is showing github.com — perf(opencode): batch snapshot diffFull blob reads by kitlangton · Pull Request #20752 · anomalyco/opencode
Conversation
kitlangton
commented
Apr 2, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
- batch
Snapshot.diffFull() blob reads with git cat-file --batch instead of spawning per-file git show processes
- keep the existing output order and per-file fallback behavior, while tightening the batch parser and only loading the needed side for added and deleted files
- add regression coverage for a large mixed diff and for order preservation across batch boundaries
Benchmark
- local synthetic 1000-file mixed diff benchmark on
dev: avg 4752.12ms, median 4750.85ms
- local synthetic 1000-file mixed diff benchmark on this branch: avg
273.91ms, median 271.88ms
- observed speedup: about
17.3x
Testing
bun run test ./test/snapshot/snapshot.test.ts
bun typecheck
Related
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Rwanbt
pushed a commit
to Rwanbt/unifia
that referenced
this pull request
May 5, 2026
AIALRA-0
pushed a commit
to AIALRA-0/opencode-turn-engine
that referenced
this pull request
Jun 10, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|