-
-
Notifications
You must be signed in to change notification settings - Fork 202
Profile Main Thread Activity for Desktop Grid Scrolling #9204
Copy link
Copy link
Closed
Labels
aiperformancePerformance improvements and optimizationsPerformance improvements and optimizationstesting
Description
Objective
To definitively identify the Main Thread bottleneck causing the 30 FPS cap on Desktop Grid scrolling.
Context
Previous investigations (#9199, #9203) established:
- Scaling: Performance drops linearly with active cell count (~560 on Desktop).
- Not Rendering: Removing styles/images/shadows does not improve FPS.
- Not Throttling: Reducing update frequency does not improve FPS.
This leaves Main Thread Scripting (VDOM Patching) or Layout Thrashing as the prime suspects. We need to "see" the CPU time breakdown.
Tasks
- Capture Trace: Use Playwright (or manual DevTools) to capture a Chrome Performance Profile during the Desktop scroll benchmark.
- Analyze Trace:
- Measure time spent in
messageevents (Worker communication). - Measure time spent in
Neo.main.DeltaUpdates.update(DOM Patching). - Measure time spent in
LayoutandRecalculate Style.
- Measure time spent in
- Hypothesis Testing:
- If
Layoutis high: We need to flatten the DOM (reduce Flexbox nesting). - If
updateis high: We need to optimize the VDOM diff/patch engine for this specific update pattern.
- If
Outcome
A clear "blame assignment" (Layout vs. Scripting) to guide the next optimization phase.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aiperformancePerformance improvements and optimizationsPerformance improvements and optimizationstesting