holdStory read steps.clientWidth on each of the story's ~10 draws a
second, and each read laid the whole page out again first. The width
now comes from the ResizeObserver already on steps, which runs after
layout and so reads it for free; it fires on the first layout and on
every change of width, which is all holdStory keys on.
Run at 014680033 + this change, WebKit, the bin3164 sandbox app under
load.sh (60 routes, ~800 keys), two folds open, 10s, two runs each:
- holdStory 346 / 373 ms -> 170 / 200 ms (105-114 calls)
- renderLog (includes it) 618 / 662 ms -> 430 / 503 ms
GUI, each file alone, concurrency 2: routing-story-shrinks 10/10,
routing-day-window 30/30, routing-bodies 10/10, routing-pin-leaves
22/22, routing-failed-open 8/8, routing-purpose-state 4/4. Broken by
hand (the observer no longer sets the width): routing-story-shrinks
0/10.
Stacked on 9787ca436, routing-story-shrinks and routing-model-rest
together: one run had 1 red whose log wasn't kept, so it is unnamed;
four runs after it, logs kept, 30/30 each.
Not tried: the real app window.