VictoriaMetrics/lib/bytesutil
Aliaksandr Valialkin 0698467ae5
lib/bytesutil: do not intern long strings, since they may need big amounts of additional memory for the cache
Allow users fine-tuning the maximum string length for interning via -internStringMaxLen command-line flag.
This may be used for fine-tuning RAM vs CPU usage for certain workloads.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3692
2023-01-23 23:37:08 -08:00
..
bytebuffer.go lib/bytesutil: split Resize* funcs to MayOverallocate and NoOverallocate for more fine-grained control over memory allocations 2022-02-01 11:20:20 +02:00
bytebuffer_test.go all: rename ReadAt* to MustReadAt* in order to dont clash with io.ReaderAt 2020-01-30 15:16:16 +02:00
bytesutil.go all: readability improvements for query traces 2022-06-30 18:19:43 +03:00
bytesutil_test.go lib/bytesutil: split Resize* funcs to MayOverallocate and NoOverallocate for more fine-grained control over memory allocations 2022-02-01 11:20:20 +02:00
fast_string_matcher.go lib/bytesutil: make sure that the cleanup code is performed only by a single goroutine out of many concurrently running goroutines 2022-12-21 12:58:27 -08:00
fast_string_matcher_test.go lib/bytesutil: make sure that the cleanup code is performed only by a single goroutine out of many concurrently running goroutines 2022-12-21 12:58:27 -08:00
fast_string_matcher_timing_test.go lib/regexutil: cache MatchString results for unoptimized regexps 2022-09-30 12:28:25 +03:00
fast_string_transformer.go lib/bytesutil: make sure that the cleanup code is performed only by a single goroutine out of many concurrently running goroutines 2022-12-21 12:58:27 -08:00
fast_string_transformer_test.go lib/bytesutil: add FastStringTransformer and use it in the rest of the code where needed 2022-09-28 10:39:42 +03:00
fast_string_transformer_timing_test.go lib/regexutil: cache MatchString results for unoptimized regexps 2022-09-30 12:28:25 +03:00
internstring.go lib/bytesutil: do not intern long strings, since they may need big amounts of additional memory for the cache 2023-01-23 23:37:08 -08:00
internstring_test.go lib/bytesutil: move InternString() from lib/promscrape/discoverytutils to lib/bytesutil 2022-09-30 07:34:59 +03:00
internstring_timing_test.go lib/bytesutil: move InternString() from lib/promscrape/discoverytutils to lib/bytesutil 2022-09-30 07:34:59 +03:00
itoa.go lib/bytesutil: add InternBytes() function as a shortcut to InternString(ToUnsafeString(..)) 2023-01-03 22:15:49 -08:00
itoa_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00