prometheus/promql
Julien Pivotto 29878f7b91 promql: Optimize mergeSeriesWithSameLabelset for common case
Add fast path that returns early when no duplicate labelsets exist,
avoiding allocations in the common case. For the merge case, simplify
collision detection by checking for duplicate timestamps after sorting
instead of building a timestamp map, reducing memory overhead.

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2025-12-15 11:56:34 +01:00
..
fuzz-data textparse: Add fuzzing and fix bug caught 2017-07-07 11:12:17 +02:00
parser Merge pull request #17427 from roidelapluie/roidelapluie/ffapi 2025-12-10 10:14:03 +01:00
promqltest promql: Fix collision error with delayed name removal for non-overlapping series 2025-12-12 14:50:29 +01:00
bench_test.go Update modernize (#17471) 2025-11-04 05:13:49 +00:00
durations.go chore(promql): improve doc string in promql/durations.go (#16863) 2025-07-11 12:07:54 +02:00
durations_test.go Add step(), min(a,b) and max(a,b) in promql duration expressions 2025-07-02 11:17:17 +02:00
engine.go promql: Optimize mergeSeriesWithSameLabelset for common case 2025-12-15 11:56:34 +01:00
engine_internal_test.go promql (histograms): reconcile mismatched NHCB bounds (#17278) 2025-10-18 01:03:52 +02:00
engine_test.go Update modernize (#17471) 2025-11-04 05:13:49 +00:00
functions.go promql: Ensure that rate/increase/delta of histograms results in a gauge histogram. (#17608) 2025-11-26 18:18:01 +01:00
functions_internal_test.go promql: Ensure that rate/increase/delta of histograms results in a gauge histogram. (#17608) 2025-11-26 18:18:01 +01:00
functions_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
fuzz.go refactor(textparse): Introduce Variadic options in textParse.New (#17155) 2025-09-11 10:49:42 +01:00
fuzz_test.go fix: use "ErrorContains" or "EqualError" instead of "Contains(t, err.Error()" and "Equal(t, err.Error()" (#15094) 2024-10-06 16:35:29 +00:00
histogram_stats_iterator.go promql: Make HistogramStatsIterator.AtFloatHistogram idempotent 2025-09-09 14:59:15 +02:00
histogram_stats_iterator_test.go promql: Make HistogramStatsIterator.AtFloatHistogram idempotent 2025-09-09 14:59:15 +02:00
info.go [PERF] PromQL: eliminate string-keyed maps in binary vector matching (#17131) 2025-11-12 10:43:05 +00:00
promql_test.go Add anchored and smoothed to vector selectors. (#16457) 2025-09-25 11:34:59 +02:00
quantile.go promql: fix histogram_fraction issue when lower falls within the first bucket (#17424) 2025-11-13 11:17:51 +01:00
quantile_test.go Export quantile functions (#15190) 2024-11-27 13:20:23 +01:00
query_logger.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
query_logger_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
value.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
value_test.go test: move most PromQL tests into separate test package 2024-05-08 16:28:56 +01:00