String interning in Prometheus
summary
An alternate Prometheus build implements string interning by assigning numeric IDs to individual strings and using a 2–3 byte encoding for labels instead of storing repeated full strings. The first image appeared in March as tag dup labels and the feature merged in February into release 2.54.0. Early experiments show about 15% lower memory at the cost of roughly 10% higher CPU, and a pathological no‑eviction table caused unbounded memory growth until fixed.
AI-written summary · about
