Commit Graph

46 Commits (8f1dc4a70fe664e54482782aead7931b8a49a380)

Author SHA1 Message Date
beorn7 5b53aa1108 style: Replace `else if` cascades with `switch`
2 years ago
Bryan Boreham 1801cd4196 labels: small optimization to stringlabels
2 years ago
Bryan Boreham 10cc60af01 labels: add ScratchBuilder.Overwrite for slice implementation
2 years ago
Ganesh Vernekar 5588cab8b2
Merge pull request #12173 from bboreham/builder-no-empty-labels
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 3743d87c56 labels: cope with mutating Builder during Range call
2 years ago
Bryan Boreham 3c4ab7a069 labels: add test for Builder.Range
2 years ago
Julien Pivotto 5583c77b3a
Merge pull request #12095 from damnever/unnecessary-sort
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 ff993b279a
Merge pull request #12073 from bboreham/slices-sort2
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 35026fb26d
Merge pull request #11746 from prometheus/remove-microbenchmarks
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
Julien Pivotto bb323db613
Merge pull request #11074 from damnever/fix/datamodelvalidation
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)
3 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
Nick Pillitteri 53ac9d6d66
Compare equality of label.Label structs directly (#10427)
3 years ago
Łukasz Mierzwa da23c4649a
Enable misspell check in golangci-lint (#10393)
3 years ago
Bryan Boreham 579331446a
Allow downstream projects to use faster regexp (#10251)
3 years ago
beorn7 c954cd9d1d Move packages out of deprecated pkg directory
3 years ago