GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(app): contain timeline rows to cut scroll layout work by Te-River · Pull Request #54293 · anomalyco/opencode ConversationIssue for this PRCloses #54291 Type of change
What does this PR do?Scrolling a long session in the desktop app spends its main-thread time in layout and paint. A CPU profile of the scroll window puts The timeline's row container sets Measured with the benchmark added in this PR, against a production build, paired and interleaved with the baseline: cold-scroll long-task time drops by ~76ms median (5 of 7 paired rounds), and the settled frame-gap distribution improves in cumulative paired testing (11W-4L-3T, p=0.013). DOM node count is unchanged. The frame-gap metric is bimodal (50ms / 66.6ms) and load-sensitive, so single-window readings are not reliable — the numbers above come from alternating runs inside the same window. How did you verify your code works?
Screenshots / recordingsn/a — no visual change. Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The production change looks sound. Rows are already absolutely positioned, fixed-height and Public API: unchanged. The main concern is the benchmark. It's 376 lines for a one-line CSS change, and parts of it measure things this PR doesn't touch: the cold-tail settle and its
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This retries on
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Patching
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re-review at 3b41bff. Both earlier benchmark concerns are resolved. The probe now records only frame gaps, long tasks and scroll events: the Public API: unchanged. No blocking concerns. One small thing: the
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Te-River
force-pushed
the
timeline-containment
branch
6 times, most recently
from
9f3fb36 to
d71a5c6
Compare
Te-River
force-pushed
the
timeline-containment
branch
3 times, most recently
from
8c29da0 to
ace6af6
Compare
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re-review at ace6af6, after the rebase. The earlier points are addressed: the retry around the first-scroll route reload is gone, the probe no longer patches Public API: unchanged. No blocking concerns.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Te-River
force-pushed
the
timeline-containment
branch
from
ace6af6 to
f3af567
Compare
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re-review at f3af567. This is a pure rebase: the commits are unchanged from ace6af6. Both earlier threads are addressed: the reload retry and the Public API: unchanged. No blocking concerns.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Te-River
force-pushed
the
timeline-containment
branch
from
f3af567 to
3533cd6
Compare
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re-review at 3533cd6. This is a pure rebase: the commits are unchanged from f3af567. Both earlier threads are addressed: the reload retry and the Public API: unchanged. No blocking concerns.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Te-River
force-pushed
the
timeline-containment
branch
from
3533cd6 to
59796f3
Compare
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re-review at 59796f3. This is a pure rebase: the commits are unchanged from 3533cd6. Both earlier threads are addressed: the reload retry and the Public API: unchanged. No blocking concerns.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsScrolling a long session spends its main-thread time in layout and paint: a CPU profile of the scroll window puts (program) at 523ms of 1607ms sampled. The row container set only overflow: clip, so every mounted row stayed in the layout and paint path for the whole list. Add contain: layout paint to the row style, and consolidate duplicate layout reads in the scroll path (updateScrollState read clientHeight twice per frame; unpin and fill each re-derived the same overflow). Measured with the scroll benchmark added here, against a production build, paired and interleaved with the baseline: cold-scroll long-task time drops by ~76ms median (5 of 7 paired rounds), and the settled frame-gap distribution improves in cumulative paired testing (11W-4L-3T, p=0.013). DOM node count is unchanged. Drop the cold-tail settle instrumentation (coldPending share, offsetHeight sweep, pending markdown counts) and the Chromium path override: they measure the settle path, which this change does not touch. The retry for the first-scroll route reload is no longer needed now that the settle loop's budget is passed as an evaluate argument instead of read from module scope. The comment blamed a wheel burst for the app navigating. The navigation was the load-time double navigation, and the destroyed context came from the settle loop never resolving because its budget was read from module scope. The assignment is kept because it lands deterministically, not because the wheel navigates.
Te-River
force-pushed
the
timeline-containment
branch
from
59796f3 to
c3fae03
Compare
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re-review at c3fae03. This is a pure rebase: the commits are unchanged from 59796f3. Both earlier threads are addressed: the reload retry and the Public API: unchanged. No blocking concerns.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
3 of 7 tasks
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. desktop: timeline rows lack containment, so scrolling a long session burns main-thread time in layout/paintUh 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. | ||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |