Commit Graph
1 Commits
Author SHA1 Message Date
lukaszraczylo beaefa3cf6 perf(shared-state): cache primitive key lists
The breaker key list depends only on its ids, so the constructor builds it once.
The in-flight key list depends on ids and the epoch, so it rebuilds only when the epoch changes.
Under Yaegi, keys() drops from about 0.5 ms to 0.013 ms per refresh.
Callers must not modify the returned slices.
2026-11-26 07:27:08 +00:00