prometheus/model
Bryan Boreham 1e16c60bae labels: improve Get method for stringlabels build (#12485)
Inline one call to `decodeString`, and skip decoding the value string
until we find a match for the name.
Do a quick check on the first character in each string,
and exit early if we've gone past - labels are sorted in order.

Also improve tests and benchmark:
* labels: test Get with varying lengths - it's not typical for Prometheus labels to all be the same length.
* extend benchmark with label not found

---------

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-07-03 20:34:35 +01:00
..
exemplar
histogram Handle more arithmetic operators for native histograms (#12262) 2023-05-16 21:15:20 +02:00
labels labels: improve Get method for stringlabels build (#12485) 2023-07-03 20:34:35 +01:00
metadata
relabel labels: respect Set after Del in Builder (#12322) 2023-05-03 11:59:27 +01:00
rulefmt Merge remote-tracking branch 'remotes/prometheus/main' into update-upstream 2023-01-26 18:41:17 +01:00
textparse textparse/scrape: Add option to scrape both classic and native histograms 2023-05-13 01:32:25 +02:00
timestamp
value