perf(#320): hoist By-Phase state table regex to module scope (#403)

Static regex literal `byPhaseTablePattern` was recompiled on every call to `updatePerformanceMetricsSection`; hoisted to module scope (compiled once; stateless /i used with .match → safe to share across calls). `phaseRowPattern` uses dynamic interpolation and stays in-function. `Fixes #320`.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Tom Boucher
2026-05-27 20:22:06 -04:00
committed by GitHub
parent b058c5861f
commit 616b387f12
3 changed files with 62 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
type: Fixed
pr: 320
---
Hoist static `byPhaseTablePattern` regex in `updatePerformanceMetricsSection` to module scope so it compiles once instead of on every call. (#320)