Skip to content

perf(sidebar): row refactor and gated filter and scroll items left from #4433 #4438

Open

Description

@datlechin

Follow-up to #4433 (perf audit, sidebar-openquickly lane). Items left out of that PR:

  • SQ3, draw object tree rows from one value. Cut. Its own gain (every settings write re-rendered every visible sidebar row) was already removed on main by feat(settings): native macOS Settings sidebar with pushed pages and history #4413. What remains only pays off together with SQ4 or SQ7.
  • SQ4, apply a refined search as row changes. Every filter key still reloads every visible row (276 to 302 M instructions a key). Gate: rows and root swaps are at least half of the per-key main thread samples. Gate is quiet pass 2.
  • SQ6, cut the row build of a search on a large catalog. The first key t on 50k tables still stalls 110 to 170 ms on the MacBook Pro (113 to 135 ms in the audit). Gate: worst stall over 100 ms at load under 3. Gate is quiet pass 2.
  • SQ7, track the hovered row once per outline. Sidebar scroll costs 95 to 169 us/px. Gate: hover frames are 25% or more of scroll main thread samples. Gate is quiet pass 2.
  • SQ8, AppKit object tree cells (Dat: yes if the gates point at SwiftUI). Gate: after SQ7, SwiftUI is still half of scroll main thread samples. Waits on SQ7 and quiet pass 2.
  • Side effect noted in perf(sidebar): pace the filter by its last refresh and rank Open Quickly without sorting every match #4433: with keys 100 ms apart on 50k tables, key 2 sometimes draws its 10,199 rows instead of folding into key 3. About 0.9 G more instructions per series; the worst stall stays near 110 ms. The wait is timed from the outline rebuild, so SwiftUI work earlier in that turn is not counted.

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 (main d9b6120, load was up to 27, so SQ6 is not decided):

    • SQ4: FAIL, drop. Rows 11.9%, views 0.0%, field 5.0%, commit 71.8% of 816 main samples. Largest share is commit, not row swaps.
    • SQ7: FAIL, drop. Hover 8.5% of 975 scroll samples; hosting 70.5%, AttributeGraph 46.3%.
    • SQ8: would fail today (SQ7 gate). SwiftUI is 72.7% of cell samples, but the gate order needs SQ7 first.
    • SQ6: first key on 50k tables, worst stall 179.5 ms (3 runs 171-180), row build 80%, matching 3%. Load1 max 27.6, so not decided; needs a quiet rerun.
  3. datlechin commented on Nov 24, 2026

    @datlechin
    MemberAuthor

    SQ6 not decided (worst stall 179.5 ms, load up to 27): left open for a quiet-window rerun. SQ4, SQ7 dropped, SQ8 follows SQ7.

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