Repository navigation
fix(viewer): recalibrate the load estimate to the post-#266 decode throughput - #271
Merged
Merged
Conversation
…roughput The loading card derived its 'about N s' hint from 1.15 MB/s, measured when the 33.7 MB project took 30 s to decode. After #266 the deployed viewer decodes it in about 3 s, so the hint promised ten times the real wait. The constant now reflects the measured 11 MB/s.
DrunkOnJava
enabled auto-merge (squash)
September 19, 2026 19:17
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_595aadfa-bb75-4577-8c3b-6ba50c1f64e4) |
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.
Summary
The loading card derived its "about N s" hint from 1.15 MB/s, measured when the 33.7 MB project took 30 s to decode. After #266 the deployed viewer decodes it in about 3 s (measured live: toast reports 3 s, 6.7 s including the 32 MB download), so the hint promised ten times the real wait. The constant now reflects the measured 11 MB/s.
Testing
npm run typecheckLegal and contribution hygiene
Note
Low Risk
Display-only constant and comment; no decode, worker, or parsing logic changes.
Overview
Updates the viewer load overlay’s “about N s” hint to match decode speed after #266 (partition streams inflated once per file).
DECODE_BYTES_PER_SECONDrises from ~1.15 MB/s to ~11 MB/s, so a 33.7 MB demo is estimated at ~3 s instead of ~30 s.The nearby comment now documents the new measurement basis (deployed site) and why the progress bar stays indeterminate.
loadExpectationbehavior is unchanged; only the constant and documentation differ.Reviewed by Cursor Bugbot for commit 69df439. Configure here.