SIGN IN SIGN UP

fix(metrics): restore IndexMap for unbounded MetricSet to fix CPU regression (#25493)

* perf(metrics): restore IndexMap for unbounded MetricSet to fix CPU regression

* refactor(metrics): remove pop_lru from MetricSetInner, check Bounded in enforce_capacity_policy

* chore(changelog): add context on when the perf regression is noticeable

* refactor(metrics): add debug_assert for impossible Bounded state in enforce_capacity_policy

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
T
Thomas committed
08b6975fc7c0384ecb72e94bceedb7622a5340db
Parent: b7aae73
Committed by GitHub <noreply@github.com> on 5/29/2026, 3:31:05 AM