Skip to content

perf(grid): wide grid fling and gated items left from #4426 #4437

Open

Description

@datlechin

Follow-up to #4426 (perf audit, grid-tabs lane). Items left out of that PR:

  • 6b, wide grids. A 500-column fling still costs 1.9x a 7-column fling in instructions (6,478 vs 3,479 M), above the plan's 1.5x line. AppKit asks the delegate for every column of a new row. The fix the plan sketches: a header table that holds all columns over a body table with one column. Structural, deferred by Dat.
  • G4b, keep one grid controller across table tabs. tabs.lldb.gridInit.perSwitch is still 1.0. Gate is quiet pass 2.
  • GX1, row numbers as one gutter view. 7-column fling 2,816 vs 3,479 M (-19%), 553 vs 621 ms, under the 25% bar, measured at load 80. Re-measure on a quiet machine.
  • GX3 (one layer per pane) and GX4 (responsive scrolling): not measured yet, each needs a throwaway Release build.
  • 7c (tab strip reveal) and 7d (Structure and back): checks C3 and C4 not in the suite yet; structure.open and structure.back unchanged within noise.
  • Closed by measurement: G3b (SwiftUI sizing 0.7% to 0.8% of the fling, gate 3%), GX2 (declined).

Quiet pass 2 results will be added here.

Activity

  1. added
    enhancement
    platform-macos
    on Nov 23, 2026
  2. datlechin commented on Nov 24, 2026

    @datlechin
    MemberAuthor

    Quiet pass 2, first part (Mac mini, main at d9b6120, load under 3):

    • G4b: fails its gate. Grid make, mount, insert, remove and release are 8.0% of 462 main-thread samples over 5 tab switches (tab strip 0.9%), under the 15% bar. Dropped.
    • 6b: 500 columns 6,993 M instructions and 682.9 ms per fling, 7 columns 3,820 M and 689 ms. 1.83x in instructions, 0.99x in time. Still over the 1.5x line; stays deferred.
    • G3b: SwiftUI sizing is 0.5% of 655 samples of a 7-column fling, under 3%. Stays out.
    • GX1, GX3, GX4: no number. xctrace hung on attach in the GX steps and was dropped from this pass. Still open.
  3. datlechin commented on Nov 24, 2026

    @datlechin
    MemberAuthor

    GX1, GX3, GX4 not measured (xctrace Animation Hitches attach hangs in the harness, no quiet window). G4b FAIL and G3b out stand. Parked, reopen with a working hitches harness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions