~/lightning

More efficient string interning

Lightningat PromCon EU 2024 · 2024-09-11..09-12· [go, observability]
slides:none on file

Shows a concrete Go implementation change: replacing a naive sync.Map interner with a specialized two-part map (mutable recent map plus replaceable read-only map) that stores only one Go object per unique string. Benchmarks show 1 million strings -> 5 million objects with the naive approach and a 5x reduction to ~1 million Go objects after the change. Implementation ships in VictoriaMetrics, reduces GC overhead and yields more CPU for application work; recommendation is to adopt in Prometheus.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.