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

internal: use a sync.Pool of msgpack.Decoder #440

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

oleg-jukovec
Copy link
Collaborator

@oleg-jukovec oleg-jukovec commented Mar 29, 2025

The change helps to avoid 2 allocations per a response decoding.

You could check the change with the command:

$ $ go test -v . -bench . -run fff -benchmem

@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/decoders-pool branch 7 times, most recently from 30cb74b to 62e5235 Compare March 29, 2025 21:51
The change helps to avoid 2 allocations per a response decoding.

You could check the change with the command:

$ go test -v . -bench . -run fff -benchmem
@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/decoders-pool branch from 62e5235 to 542bfc9 Compare March 30, 2025 18:27
@oleg-jukovec oleg-jukovec merged commit 7926576 into master Apr 1, 2025
26 checks passed
@oleg-jukovec oleg-jukovec deleted the oleg-jukovec/decoders-pool branch April 1, 2025 20:21
Copy link

@palage4a palage4a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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.

4 participants