Skip to content

Engine walk: AXColumn elements themselves wait with rule C's queue, so big Chrome tables don't pay for their cell lists #310

Closed

Description

@SSFSKIM

The cost

On Chrome tables of more than 512 rows, #304's walk reads the table's AXColumn elements themselves.

  • Their frames span the whole table, so rule B counts them as shown end children of the table and reads them with the shown run.
  • Each column lists every cell (6,001 on the 6,000-row table), so the width rule takes that whole child list, at about 28 ms per column.
  • Main never reaches the columns in a cut walk, because its budget goes on the rows.

The hosted A/B on aab236f (https://github.com/SSFSKIM/cua/actions/runs/42360213243), paired walk time B − A:

  • local-table-6k +323 ms;
  • local-table-bar +174 ms;
  • local-table +110 ms.

Rule B's own frame reads come to only 8–10 ms per table.

The proposal

Let AXColumn elements themselves wait in rule C's last-of-all queue, not only their cells. The guard reaches the cells through their rows, so reading the column elements early buys it nothing.

Open question for the design session

#304's invariant, ruling f1a7589f, says rule B never leaves unread a shown child that main would have read before the cut. Main reads a table's columns before its cut on a table of a few hundred rows, so deferring them breaks the invariant as worded. The invariant would need a stated exemption: an AXColumn is not a shown child for the invariant, because its cells are reached through rows. WideListInvariantTests would encode that exemption.

Evidence

The A/B report and diag timings: ~/.local/share/probe-304/ab-42360213243/ on the MacBook. The -diag groups time each frame read by position; frame reads on columns are 50–56 µs, so the cost lies in the child list, not in the frame.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P3
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 7, 2026
  2. added 4 commits that reference this issue on Nov 9, 2026
  3. added
    status:in-review
    and removed
    status:in-progress
    on Nov 9, 2026
  4. SSFSKIM commented on Nov 9, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #347: AXColumn waits last; review clean; ci-gate green; header-row cells printed in all 5 lost-column records

  5. removed
    status:in-review
    on Nov 9, 2026
  6. SSFSKIM commented on Nov 9, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #347 (0.27.21)

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

    enhancementpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions