LearnNewsExamplesServices
Frontmatter
id9052
titlePerf: Optimize Sparkline Backpressure & Investigate Grid Reflows
stateClosed
labels
bugaiperformance
assigneestobiu
createdAtFeb 8, 2026, 6:58 PM
updatedAtFeb 8, 2026, 7:11 PM
githubUrlhttps://github.com/neomjs/neo/issues/9052
authortobiu
commentsCount0
parentIssue8930
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 8, 2026, 7:11 PM

Perf: Optimize Sparkline Backpressure & Investigate Grid Reflows

Closed v12.0.0 bugaiperformance
tobiu
tobiu commented on Feb 8, 2026, 6:58 PM

The DevRank Grid shows "Forced Reflow" and "RequestAnimationFrame" violations during rapid scrolling (e.g., Page Down / End). Initial hypothesis (Canvas Worker overload) led to the implementation of Adaptive Backpressure in Neo.canvas.Sparkline. However, tests reveal that violations persist even when Sparkline components are removed, pointing to a root cause in the Grid's Main Thread rendering or layout logic.

Tasks:

  1. Finalize Sparkline optimizations:
    • Enable Adaptive Backpressure (Frame Budgeting).
    • Apply contain: strict to wrappers.
    • Set maxConcurrentTransitions to 30.
  2. Investigate Neo.grid.Body and Neo.grid.Container for sources of synchronous layout thrashing (forced reflows) during large scroll jumps.
tobiu added the bug label on Feb 8, 2026, 6:58 PM
tobiu added the ai label on Feb 8, 2026, 6:58 PM
tobiu added the performance label on Feb 8, 2026, 6:58 PM
tobiu referenced in commit 18a17c1 - "perf: Implement adaptive backpressure for Sparklines (#9052)" on Feb 8, 2026, 7:00 PM
tobiu assigned to @tobiu on Feb 8, 2026, 7:11 PM
tobiu closed this issue on Feb 8, 2026, 7:11 PM
tobiu added parent issue #8930 on Feb 8, 2026, 7:51 PM