prometheus/util
György Krajcsovits c26a5390aa
perf(tsdb): reuse map of sample types to speed up head appender
While investigating +10% CPU in v3.7 release, found that ~5% is from
expanding the types map. Try reuse.

Also fix a linter error.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-10-06 21:44:34 +02:00
..
almost [COMMENT] Improve comment on almost.Equal; add tests 2024-08-30 10:13:00 +01:00
annotations promql: Fix when to emit a `HistogramCounterResetCollisionWarning` 2025-09-03 18:00:03 +02:00
compression chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
convertnhcb Set hasCount after setting count to be consistent 2024-11-26 13:56:22 +01:00
documentcli Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
fmtutil common: Update to prom/common v0.66.0, fix TextParser creation (#17139) 2025-09-03 11:20:04 -04:00
gate
httputil Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
jsonutil
junitxml
logging Add comments clarifying why promql.Querylogger exists (#17231) 2025-09-26 15:33:09 +01:00
namevalidationutil Make metric/label name validation scheme explicit (#16928) 2025-08-18 08:09:00 +00:00
netconnlimit
notifications Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
osutil
pool Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
runtime chore: Fix typos (#14868) 2024-09-10 22:32:03 +02:00
runutil
stats Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
strutil Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
teststorage TSDB: Fix some edge cases when OOO is enabled (#14710) 2024-10-23 17:34:28 +02:00
testutil perf(tsdb): reuse map of sample types to speed up head appender 2025-10-06 21:44:34 +02:00
treecache Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
zeropool Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00