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

Pool reader buffers #438

Merged
merged 2 commits into from
Aug 27, 2024
Merged

Conversation

jfzunigac
Copy link
Contributor

This PR introduces a buffered input stream implementation that leverages Netty's pooled direct ByteBuf for buffering, instead of traditional nio ByteBuffers or byte arrays. This approach aims to minimize garbage collection overhead by reusing pooled buffers rather than repeatedly creating new ones for each stream. This optimization is particularly useful for scenarios where a single Singer instance handles thousands of log streams.

@jfzunigac jfzunigac requested a review from a team as a code owner August 27, 2024 00:42
@jfzunigac jfzunigac merged commit a51ac12 into pinterest:master Aug 27, 2024
1 check passed
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.

3 participants