mirror of https://github.com/prometheus/prometheus
Browse Source
Instead of allocating ListPostings pointers one by one, allocate a slice and take pointers from that. It's faster, and also generates less garbage (NewListPostings is one of the top offenders in number of allocations). Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>main
Oleg Zaytsev
1 day ago
committed by
GitHub
1 changed files with 4 additions and 2 deletions
Loading…
Reference in new issue