Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reuse components slice when parsing chunk time range value. (grafana#…
…3501) This uses a buffer pool for when we parse the chunk time range value. ``` ❯ benchcmp before.txt after.txt benchmark old ns/op new ns/op delta BenchmarkParseIndexEntries500-16 265343 232446 -12.40% BenchmarkParseIndexEntries2500-16 1393835 1232639 -11.56% BenchmarkParseIndexEntries10000-16 5741372 5032199 -12.35% BenchmarkParseIndexEntries50000-16 30158888 27272835 -9.57% BenchmarkParseIndexEntriesRegexSet500-16 79101 50394 -36.29% BenchmarkParseIndexEntriesRegexSet2500-16 386920 246015 -36.42% BenchmarkParseIndexEntriesRegexSet10000-16 1570068 957154 -39.04% BenchmarkParseIndexEntriesRegexSet50000-16 7445006 4757111 -36.10% benchmark old allocs new allocs delta BenchmarkParseIndexEntries500-16 1504 1004 -33.24% BenchmarkParseIndexEntries2500-16 7504 5004 -33.32% BenchmarkParseIndexEntries10000-16 30006 20005 -33.33% BenchmarkParseIndexEntries50000-16 150008 100007 -33.33% BenchmarkParseIndexEntriesRegexSet500-16 1522 1022 -32.85% BenchmarkParseIndexEntriesRegexSet2500-16 7522 5022 -33.24% BenchmarkParseIndexEntriesRegexSet10000-16 30022 20022 -33.31% BenchmarkParseIndexEntriesRegexSet50000-16 150022 100022 -33.33% benchmark old bytes new bytes delta BenchmarkParseIndexEntries500-16 96397 32365 -66.43% BenchmarkParseIndexEntries2500-16 482307 162164 -66.38% BenchmarkParseIndexEntries10000-16 1928766 648454 -66.38% BenchmarkParseIndexEntries50000-16 9608702 3207322 -66.62% BenchmarkParseIndexEntriesRegexSet500-16 88665 24689 -72.15% BenchmarkParseIndexEntriesRegexSet2500-16 441471 121573 -72.46% BenchmarkParseIndexEntriesRegexSet10000-16 1764370 484644 -72.53% BenchmarkParseIndexEntriesRegexSet50000-16 8803429 2404042 -72.69% ``` Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
- Loading branch information