Commit Graph
2 Commits
Author SHA1 Message Date
lukaszraczylo 6d1bc2cd33 perf(shared-state): scope decision breaker to decision providers
The decision breaker covered every provider id but a decider only queries its own router provider.
The breaker now covers the sorted, de-duplicated decision providers.
This cuts the refresh key count and the Redis read per tick.
2026-11-26 07:41:30 +00:00
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