Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 3 commits into from

Conversation

owen-d
Copy link
Member

@owen-d owen-d commented Jun 21, 2024

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.

…wise allocs

Signed-off-by: Owen Diehl <ow.diehl@gmail.com>
@owen-d owen-d requested a review from a team as a code owner June 21, 2024 20:55
Signed-off-by: Owen Diehl <ow.diehl@gmail.com>
@owen-d owen-d marked this pull request as draft June 21, 2024 21:33
@owen-d owen-d force-pushed the blooms/mempool-best-effort branch 2 times, most recently from bda9ca4 to 174e5e2 Compare June 21, 2024 22:43
Signed-off-by: Owen Diehl <ow.diehl@gmail.com>
@owen-d owen-d force-pushed the blooms/mempool-best-effort branch from 174e5e2 to 9d70670 Compare June 21, 2024 23:04
@owen-d owen-d closed this Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant