mirror of
https://github.com/prometheus/prometheus
synced 2025-01-13 10:22:46 +00:00
bb724f1bef
Federation makes use of dedupedSeriesSet to merge SeriesSets for every query into one output stream. If many match[] arguments are provided, many dedupedSeriesSet objects will get chained. This has the downside of causing a potential O(n*k) running time, where n is the number of series and k the number of match[] arguments. In the mean time, the storage package provides a mergeSeriesSet that accomplishes the same with an O(n*log(k)) running time by making use of a binary heap. Let's just get rid of dedupedSeriesSet and change all existing callers to use mergeSeriesSet. |
||
---|---|---|
.. | ||
api | ||
ui | ||
federate_test.go | ||
federate.go | ||
web_test.go | ||
web.go |