VictoriaMetrics/app/vmalert/rule
Roman Khavronenko 955d36357c
app/vmalert/rule: reduce number of allocations for getStaleSeries fn (#6269)
Allocations are reduced by re-using the byte buffer when converting
labels to string keys.
```
name               old allocs/op  new allocs/op  delta
GetStaleSeries-10       703 ± 0%       203 ± 0%   ~     (p=1.000 n=1+1)
```

Signed-off-by: hagen1778 <roman@victoriametrics.com>
(cherry picked from commit b0c1f3d819)
2024-05-16 09:35:51 +02:00
..
alerting.go vmalert: avoid blocking APIs when alerting rule uses template functio… (#6129) 2024-04-19 11:30:40 +02:00
alerting_test.go vmalert: fix sending alert messages (#6028) 2024-04-02 23:51:06 +03:00
group.go app/vmalert/rule: reduce number of allocations for getStaleSeries fn (#6269) 2024-05-16 09:35:51 +02:00
group_test.go vmalert: avoid blocking APIs when alerting rule uses template functio… (#6129) 2024-04-19 11:30:40 +02:00
group_timing_test.go app/vmalert/rule: reduce number of allocations for getStaleSeries fn (#6269) 2024-05-16 09:35:51 +02:00
recording.go vmalert: automatically add exported_ prefix for original evaluation… (#5398) 2023-12-22 16:10:33 +01:00
recording_test.go vmalert: automatically add exported_ prefix for original evaluation… (#5398) 2023-12-22 16:10:33 +01:00
rule.go docs: update vmalert and vmagent docs (#6207) 2024-04-30 10:30:19 +02:00
rule_test.go vmalert-tool: implement unittest (#4789) 2023-10-16 14:12:06 +02:00
test_helpers.go app/vmalert/rule: reduce number of allocations for getStaleSeries fn (#6269) 2024-05-16 09:35:51 +02:00
utils.go vmalert-tool: implement unittest (#4789) 2023-10-16 14:12:06 +02:00
utils_test.go vmalert-tool: implement unittest (#4789) 2023-10-16 14:12:06 +02:00