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

decrease the memory footprint of request/reply procedure #262

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

VladoLavor
Copy link
Collaborator

@VladoLavor VladoLavor commented Jan 23, 2025

See issue #254

Instead of allocating new temporary request/reply objects for each message call and then leaving them for GC to collect, put them into sync.Pool instead. The follow-up call can pick previously allocated request/reply from the pool.

This approach is supposed to decrease the total number of allocations and STWs due to the GC runs.

Signed-off-by: Vladimir Lavor [email protected]

Signed-off-by: Vlado Lavor <[email protected]>
@VladoLavor VladoLavor self-assigned this Feb 20, 2025
@VladoLavor VladoLavor requested review from ondrej-fabry and a team February 20, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant