prometheus/model
Bryan Boreham 82a8c6abe2
[ENHANCEMENT] Optimize regexps with multiple prefixes (#13843)
For example `foo.*|bar.*|baz.*`. Instead of checking each one in turn,
we build a map of prefixes, then check the smaller set that could match
the string supplied.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Improve testing and readability

Address review comments on #13843

Signed-off-by: Marco Pracucci <marco@pracucci.com>
2024-07-03 18:45:36 +01:00
..
exemplar Scraping: use slices.sort for exemplars 2023-11-24 14:42:26 +00:00
histogram Fix lint error 2024-06-24 09:33:03 +02:00
labels [ENHANCEMENT] Optimize regexps with multiple prefixes (#13843) 2024-07-03 18:45:36 +01:00
metadata Fix: metadata API using wrong field names (#13633) 2024-02-26 09:53:39 +00:00
relabel Merge pull request #14004 from liam-howe-maersk/implement-config-marshal 2024-06-27 12:13:14 +02:00
rulefmt Feature: Allow configuration of a rule evaluation delay (#14061) 2024-05-30 11:49:50 +01:00
textparse Bump client_golang to 1.19 2024-03-06 09:11:13 -03:00
timestamp Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
value Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00