57 Commits (b6192be856650cc379abd406aa0f38097e73f1f1)

Author SHA1 Message Date
Bryan Boreham ce260b1fe1 labels: remove some unused code 1 year ago
Bryan Boreham b5c6807fea Labels.Has quick check on first character 1 year ago
Bryan Boreham 33aab1b2cc labels: extend benchmark for Has() 1 year ago
Bryan Boreham e1115ae58d
labels: improve Get method for stringlabels build (#12485) 1 year ago
Bryan Boreham 87d08abe11
labels: faster Compare function when using -tags stringlabels (#12451) 1 year ago
Oleg Zaytsev 6a18962cfa
mv labels_string.go labels_stringlabels.go (#12328) 1 year ago
Michael Hoffmann 344c8ff97c
feat: dont compile regex matcher if we know its a literal (#12434) 1 year ago
Bryan Boreham e278195e39
Cherry-pick bugfix #12322 and create v2.43.1 (#12324) 2 years ago
Bryan Boreham 7a48a266b6
labels: respect Set after Del in Builder (#12322) 2 years ago
cui fliter 276ca6a883 fix some comments 2 years ago
beorn7 5b53aa1108 style: Replace `else if` cascades with `switch` 2 years ago
Bryan Boreham 1801cd4196 labels: small optimization to stringlabels 2 years ago
Matthieu MOREL fb3eb21230 enable gocritic, unconvert and unused linters 2 years ago
Bryan Boreham 10cc60af01 labels: add ScratchBuilder.Overwrite for slice implementation 2 years ago
Bryan Boreham e917202766 labels: make sure estimated size is not negative 2 years ago
Bryan Boreham ee1157c14a labels: shrink stack arrays in Builder.Range 2 years ago
Bryan Boreham b987afa7ef labels: simplify call to get Labels from Builder 2 years ago
Bryan Boreham 934c520d37 labels: cope with mutating Builder during Range call 2 years ago
Bryan Boreham bd23e8899d labels: add test for Builder.Range 2 years ago
Bryan Boreham 3743d87c56 labels: cope with mutating Builder during Range call 2 years ago
Bryan Boreham 3c4ab7a069 labels: add test for Builder.Range 2 years ago
Xiaochao Dong (@damnever) 36fc1158b5 Remove unnecessary sort 2 years ago
Bryan Boreham d740abf0c6 model/labels: add Get and Range to Builder 2 years ago
Bryan Boreham 38c6d3da9f labels: use slices.Sort for better performance 2 years ago
Bryan Boreham a07a0be024 Add benchmark for labels.Builder 2 years ago
Bryan Boreham 30297f0d9b stringlabels: size buffer for added labels 2 years ago
Bryan Boreham f03b8d0968 Add benchmark copying labels 2 years ago
Bryan Boreham 6136ae67e0 labels: shrink by making internals a single string 2 years ago
Bryan Boreham 10b27dfb84 Simplify IndexReader.Series interface 2 years ago
Bryan Boreham b10fd9aea3 model/labels: add a basic test for ScratchBuilder 2 years ago
Bryan Boreham cbf432d2ac Update package labels tests for new labels.Labels type 2 years ago
Bryan Boreham 617bee60f1 labels: use ScratchBuilder in ReadLabels 2 years ago
Bryan Boreham 2b8b8d9ac7 labels: new methods to work without access to internals 2 years ago
Bryan Boreham ea7345a09c labels: improve comment on Builder.Set 2 years ago
Bryan Boreham a19b369f9e labels: avoid lint warning on New() 2 years ago
Xiaochao Dong (@damnever) 9979024a30 Report error if the series contains invalid metric names or labels during scrape 2 years ago
Bryan Boreham 8d4140a06e labels: note that Hash may change 2 years ago
Bryan Boreham 5421c778ba labels: in tests use labels.FromStrings 2 years ago
Cosrider bef6556ca5
delete redundant alias (#11180) 2 years ago
Bryan Boreham 8b863c42dd
Optimise relabeling by re-using memory (#11147) 2 years ago
Bryan Boreham a7f19b5775 labels: add a test for JSON and YAML marshalling 2 years ago
Bryan Boreham 10699c37a3 labels: test BytesWithoutLabels does not remove __name__ by default 2 years ago
Bryan Boreham d46ef0aa8e labels: tweak BenchmarkLabels_Get() 2 years ago
Bryan Boreham 24ebff9c4a labels: don't test that Hash() works on unordered labels 2 years ago
Bryan Boreham fb2d883f1e labels: test Compare without knowing the exact result 2 years ago
Matthieu MOREL c2b4de3611
refactor (package model): move from github.com/pkg/errors to 'errors' and 'fmt' packages (#10747) 2 years ago
Bryan Boreham 2e2c014d52
Labels: optimise creation of signature with/without labels (#10667) 2 years ago
Łukasz Mierzwa b11062bfcc
Don't count added labels when initializing slice (#10756) 3 years ago
Łukasz Mierzwa 08262454a3
Preallocate Labels in labels.Builder (#10749) 3 years ago
Łukasz Mierzwa 89de30a0b7
Avoid reallocating map in MatchLabels (#10715) 3 years ago