Files
doona/changes/perf-stores.md
T
Zakk 86bc91faef perf(policies): redraw a card only when its own nodes change
Each poll is a new probe round, so every node came back as a new object
with new probe times, and every policy card re-rendered: the page passed
the whole node list to each card and each card subscribed to the list
itself to find its members' protocols with a linear search.

The page now holds a steady node list in which a node whose readings did
not move keeps its object (the times count only by their order, which is
all that picks each kind's latest reading), and hands it to the cards,
which no longer subscribe on their own. Member lookups go through one id
index per list, shared by every card. Idle renders on the demo's
Policies page drop from 8084 to 404 in 32 s at 4x CPU.
2026-10-05 04:00:06 +11:00

240 B

Changed

  • Policies and Nodes no longer redraw every card and row when a poll brings only new probe times; a card or row redraws when its own nodes change.
  • A Latency tab kept open behind another stops recomputing until it is shown again.