grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
22.73k stars 3.31k forks source link

chore(blooms): allocator is best effort; uses pool if available otherwise allocs #13286

Closed owen-d closed 1 week ago

owen-d commented 1 week ago

Ideally, we'd always return buffers to the pool, but ensuring this in the code is tricky & error prone. Instead, we'll treat allocators as best effort & measure them. This should probabilistically create the reuse we want in lieu of a more perfect solution and allow us to continue using & repopulating pools when we drop pointers.