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

go: Define a bytePool for TRichTransport #2969

Merged
merged 1 commit into from Apr 30, 2024
Merged

go: Define a bytePool for TRichTransport #2969

merged 1 commit into from Apr 30, 2024

Conversation

fishy
Copy link
Member

@fishy fishy commented Apr 29, 2024

Client: go

TBinaryProtocol and TCompactProtocol (and as an extension,
THeaderProtocol) use TRichTransport's ReadByte/WriteByte functions a lot
under the hood, and in some extreme cases those ReadByte/WriteByte calls
can generate a lot of allocation syscalls for the byte they used.

Use a resource pool to help reduce the allocations.

Client: go

TBinaryProtocol and TCompactProtocol (and as an extension,
THeaderProtocol) use TRichTransport's ReadByte/WriteByte functions a lot
under the hood, and in some extreme cases those ReadByte/WriteByte calls
can generate a lot of allocations for the byte they used.

Use a resource pool to help reduce the allocations.
@fishy fishy merged commit 344498b into master Apr 30, 2024
49 of 66 checks passed
@fishy fishy deleted the go-byte-pool branch April 30, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants