prometheus/util/testutil
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
..
synctest perf(tsdb): reuse map of sample types to speed up head appender 2025-10-06 21:44:34 +02:00
cmp.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
context.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
directory.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
port.go Signed-off-by: crystalstall <crystalruby@qq.com> 2025-01-11 00:41:51 +08:00
roundtrip.go lint: Adjust to the lint warnings raised by current versions of golint-ci 2023-04-19 17:10:10 +02:00
testing.go Ignore k8s' updateUnfinishedWorkLoop go routine in goleak tests (#8598) 2021-03-29 23:43:09 +02:00