VictoriaMetrics/lib/protoparser/prometheus
Aliaksandr Valialkin e3a91b186a
lib/protoparser/prometheus: optimize GetRowsDiff() function
This should help https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1745 ,
since the provided profile shows that the majority of CPU and memory is spent in this function
during `streamParse` when `-promscrape.noStaleMarkers` wasn't set.
2021-10-27 18:54:45 +03:00
..
parser_test.go lib/protoparser/prometheus: optimize GetRowsDiff() function 2021-10-27 18:54:45 +03:00
parser_timing_test.go lib/protoparser/prometheus: add a benchmark for GetRowsDiff 2021-10-27 18:53:54 +03:00
parser.go lib/protoparser/prometheus: optimize GetRowsDiff() function 2021-10-27 18:54:45 +03:00
streamparser_test.go Fixes error handling for promscrape.streamParse (#1009) 2021-01-12 13:31:47 +02:00
streamparser.go lib/protoparser: stop reading the input stream as soon as the callback provided by the caller returns error 2021-06-14 15:18:49 +03:00