LL perf (UI): LLLayoutStack's ~4% is unexplained by code reading #359

Open
opened 2026-10-04 14:09:28 +00:00 by sky_line · 0 comments
Owner

From the LL-origin inefficiency audit (finding U0). File/line references are from commit 0229f8872c; re-locate them before working.

LLLayoutStack's ~4% is unexplained by code reading

  • What was ruled out:
    • updateClass() iterates instance_snapshot() of every stack every frame, including those inside hidden floaters (lllayoutstack.cpp:677-684). That is cheap.
    • No permanently-dirty stack was found.
  • What inflates it: the profile zone sits before the early-out (:401-405).
  • Decisive test: count stacks with mNeedsLayout per frame and log the names.
  • Fix once proven: an intrusive dirty list.
  • Suspect.

Verify the cost (profile or timer) before and after changing it.

From the LL-origin inefficiency audit (finding U0). File/line references are from commit 0229f8872c; re-locate them before working. **LLLayoutStack's ~4% is unexplained by code reading** - **What was ruled out:** - `updateClass()` iterates `instance_snapshot()` of every stack every frame, including those inside hidden floaters (`lllayoutstack.cpp:677-684`). That is cheap. - No permanently-dirty stack was found. - **What inflates it:** the profile zone sits before the early-out (`:401-405`). - **Decisive test:** count stacks with `mNeedsLayout` per frame and log the names. - **Fix once proven:** an intrusive dirty list. - Suspect. Verify the cost (profile or timer) before and after changing it.
sky_line added this to the Slipstream project 2026-10-06 15:04:13 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream#359
No description provided.