placeRows walked the wanted rows against the list's children and put
each one out of place in front of the current child. A row going (its
request moved on, so rowOf made it again) stayed where it was as that
current child, so every wanted row after it was put in again in front
of it, one insertBefore each. On a busy gateway the request in flight is
rarely the newest, so each trace update (several a second) moved ~40
rows and laid the list out again. With two groups of hundreds of keys
open, that is the 50ms+ frames WebKit showed at each update.
Rows no longer wanted are taken out first, as replaceKeeping does; the
rows kept are not touched, so WebKit's scroll position under a picked
row (what the walk was for) holds as before.
Run at this head (rows3164 worktree on origin/main 8299409e4):
- routing-row-swap.test.cjs (new): chromium and webkit pass; on the old
placeRows (origin/main) both fail: {added: 10, removed: 10} where
{added: 1, removed: 1} is wanted.
- every routing*.test.cjs and panel-routing*.test.cjs (112 files,
--test-concurrency=6): 1418 tests, 1365 pass, 53 fail. The red files,
run alone at origin/main 8299409e4 and at this head, fail the same:
routing-live-patch 4/6 both (filed #3637), routing-intent-entry 4/4
vs 5/3 (#3408), routing-manual 2/2 both (#3409), routing-pause 0/14
both (#3410), routing-rule-effort 4/14 both (#3411), routing-rule-remove
11/9 both (#3094, #3096). routing-keys-fold's one webkit de red in the
full run passes 32/32 alone at both trees.
- Sandbox (sbh3164: providers of 500 and 300 keys on a fake upstream, a
request every 0.3s, both groups open, Playwright WebKit, 10s, the
served client.js swapped old/new three times):
frames over 50ms 25/10/14 → 3/2/3; frames 344/464/360 → 398/379/403;
.rt-reqs childList records in 5s 1566/32/740 → 68/32/32.
Not tried: the macOS app's own WKWebView window, a real upstream.