Repository navigation
perf: speed up history, reports, and evidence processing - #64
Merged
Merged
Conversation
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.
History loading queried and hydrated a full report for every sidebar item, and report pages shipped the report schema and raw artifacts to the browser. Evidence processing also repeated source scans, serialization, and sequential blob reads.
This PR adds stored history summaries and one-query history reads, projects report display data on the server, narrows progress polling, and reuses report snapshots for evidence excerpts. It also bounds parallel R2 snapshot reads, reuses canonical JSON, indexes source-dependence lookups and the complete history sort order, and preloads the interface font. The work is split into 14 focused Conventional Commits.
Source-grouping timings use three warmups and nine samples, with old/new output equality checked. These are local workload measurements, not hosted end-to-end latency or provider accuracy claims.
vp run benchmark:performanceanddocs/performance.mdprovide reproduction details.Validation:
vp check,vp test --run— 510 tests,vp run check-types, andvp run buildpassed.vp run test:browser— all 19 Chromium tests passed.vp run web#deploy:staging-dry-runpassed.Apply D1 migrations 0003 and 0004 before deploying the Worker through the existing deployment workflow. Inline legacy reports are backfilled; legacy R2 reports retain the full-report fallback when their summary is absent. The default progress endpoint keeps its full-report response, and the UI opts into
?view=report.