renderActs folded every kept request's seats (60 routes x ~800 seats on
the issue's load, ~48k entries) on each of its ~10 draws a second, and
in 63% of draws the requests were the very same objects. The fold now
lives in foldActs, kept while the list holds the same route objects
(routes are replaced whole on an update, ghost() makes new ones in a
replay). The rests lifted by hand (#1869) are taken off afterwards,
without touching the kept fold, since lifted() goes by the time shown
and a replay takes it back.
Run at this head (014680033 + this change), WebKit, the bin3164
sandbox app under load.sh (60 routes, ~800 keys), two folds open, 10s,
two runs each:
- renderActs 341 / 352 ms -> 181 / 174 ms (98-109 calls)
- renderHist (includes it) 407 / 417 ms -> 283 / 278 ms
GUI: every test file that reads .rt-act or replays/history (49 files,
1452 tests, concurrency 4, load ~33): 1403 ok, 49 red. Each red file run
alone on origin/main 014680033 and on this change, same counts both:
routing-live-patch 4/6 (#3637), routing-manual 2/2 (#3409),
routing-pause 0/14 (#3410), routing-rule-effort 4/14 (#3411);
routing-model-rest 20/20 on both. The others red in the full run,
routing-rule-remove (#3094, #3096), routing-intent-entry (#3408) and
routing-steady (#3412), are rule-editor and scroll tests this doesn't
reach, and were red on main already.
Not tried: the real app window (a dev shell showed a blank page here).