mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-24 03:06:48 +01:00
faf07fbc67
- Make it in a separate goroutine, so it doesn't slow down regular intern() calls. - Do not lock internStringMap.mutableLock during the cleanup routine, since now it is called from a single goroutine and reads only the readonly part of the internStringMap. This should prevent from locking regular intern() calls for new strings during cleanups. - Add jitter to the cleanup interval in order to prevent from synchornous increase in resource usage during cleanups. - Run the cleanup twice per -internStringCacheExpireDuration . This should save 30% CPU time spent on cleanup comparing to the previous code, which was running the cleanup 3 times per -internStringCacheExpireDuration . |
||
---|---|---|
.. | ||
bytebuffer_test.go | ||
bytebuffer.go | ||
bytesutil_test.go | ||
bytesutil_timing_test.go | ||
bytesutil.go | ||
fast_string_matcher_test.go | ||
fast_string_matcher_timing_test.go | ||
fast_string_matcher.go | ||
fast_string_transformer_test.go | ||
fast_string_transformer_timing_test.go | ||
fast_string_transformer.go | ||
internstring_test.go | ||
internstring_timing_test.go | ||
internstring.go | ||
itoa_test.go | ||
itoa.go |