prometheus/model/labels
Bryan Boreham 5571c7dc98 FastRegexMatcher: use stack memory for lowercase copy of string
Up to 32-byte values this saves garbage, runs faster.
For prefixes, only `toLower` the part we need for the map lookup.

Split toNormalisedLower into fast and slow paths, to avoid a penalty
for the `copy` call in the case where no allocations are done.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2024-10-28 16:28:58 +00:00
..
labels.go lint: Revamp our linting rules, mostly around doc comments 2024-08-22 17:36:11 +02:00
labels_common.go Neater string vs byte-slice conversions (#14425) 2024-09-21 12:19:21 +02:00
labels_dedupelabels.go Labels: use single byte as separator - small speedup 2024-07-15 09:47:16 +01:00
labels_dedupelabels_test.go [PERF] Labels: faster varint for dedupelabels 2024-06-21 11:57:09 +01:00
labels_stringlabels.go Neater string vs byte-slice conversions (#14425) 2024-09-21 12:19:21 +02:00
labels_test.go fix(utf8): ensure correct validation when legacy mode turned on (#14736) 2024-08-28 17:15:42 +02:00
matcher.go Fix Matcher.String() with empty label name 2024-06-13 18:46:35 +02:00
matcher_test.go Quote label name in matchers when needed 2024-05-08 16:58:51 +02:00
regexp.go FastRegexMatcher: use stack memory for lowercase copy of string 2024-10-28 16:28:58 +00:00
regexp_test.go FastRegexMatcher: use stack memory for lowercase copy of string 2024-10-28 16:28:58 +00:00
sharding.go Labels: use single byte as separator - small speedup 2024-07-15 09:47:16 +01:00
sharding_dedupelabels.go Labels: use single byte as separator - small speedup 2024-07-15 09:47:16 +01:00
sharding_stringlabels.go Labels: use single byte as separator - small speedup 2024-07-15 09:47:16 +01:00
sharding_test.go Add ShardedPostings() support to TSDB (#10421) 2024-01-29 11:57:27 +00:00
test_utils.go Labels: Call NewScratchBuilder in test_utils 2024-02-23 13:50:27 +00:00