prometheus/promql
Filip Petkovski 6e68046c25
Implement histogram statistics decoder (#14097)
Implement histogram statistics decoder

This commit speeds up histogram_count and histogram_sum
functions on native histograms. The idea is to have separate decoders which can be
used by the engine to only read count/sum values from histogram objects. This should help
with reducing allocations when decoding histograms, as well as with speeding up aggregations
like sum since they will be done on floats and not on histogram objects.

Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>

---------

Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2024-06-06 17:17:13 +02:00
..
fuzz-data textparse: Add fuzzing and fix bug caught 2017-07-07 11:12:17 +02:00
parser Implement histogram statistics decoder (#14097) 2024-06-06 17:17:13 +02:00
promqltest removes the added tests from engine_test.go 2024-05-13 22:58:25 +05:30
bench_test.go Implement histogram statistics decoder (#14097) 2024-06-06 17:17:13 +02:00
engine.go Implement histogram statistics decoder (#14097) 2024-06-06 17:17:13 +02:00
engine_internal_test.go refactor: extract some PromQL Engine tests which use unexported structs 2024-05-08 16:27:17 +01:00
engine_test.go Merge branch 'main' into sort-matrix-series 2024-05-31 12:44:27 +10:00
functions.go test: turn TestKahanSum into scripted test 2024-05-08 13:42:55 +01:00
functions_test.go test: move most PromQL tests into separate test package 2024-05-08 16:28:56 +01:00
fuzz.go promql: fuzz test needs symbol table for parser 2024-02-26 11:45:25 +00:00
fuzz_test.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
histogram_stats_iterator.go Implement histogram statistics decoder (#14097) 2024-06-06 17:17:13 +02:00
histogram_stats_iterator_test.go Implement histogram statistics decoder (#14097) 2024-06-06 17:17:13 +02:00
promql_test.go test: PromQL: stop using internal fields of engine 2024-05-08 19:58:41 +01:00
quantile.go refactor: extract almost.Equal() to new package 2024-05-08 13:42:10 +01:00
quantile_test.go PromQL: ignore small errors for bucketQuantile (#13153) 2023-11-25 00:05:38 +01:00
query_logger.go Join errors 2024-05-27 17:14:17 +02:00
query_logger_test.go promql.ActiveQueryTracker: Unmap mmapped file when done 2024-05-09 14:27:29 +02:00
value.go Optimize histogram iterators (#13340) 2024-01-23 17:02:14 +01:00
value_test.go test: move most PromQL tests into separate test package 2024-05-08 16:28:56 +01:00