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

Perf - Add buffer pooling where relevant #832

Open
thibault-reigner opened this issue Apr 25, 2023 · 0 comments
Open

Perf - Add buffer pooling where relevant #832

thibault-reigner opened this issue Apr 25, 2023 · 0 comments
Labels
enhancement Feature request or other improvements of existing functionality performance

Comments

@thibault-reigner
Copy link

thibault-reigner commented Apr 25, 2023

Current situation

Some pieces of code such as InflaterInputStream, through InflaterInputStream, allocate buffers upfront in their constructors, with no way to control this behavior (e.g : passing the buffer to use).
In code making intensive use of such classes (e.g : app sending huge amounts of compressed data in my case), this can result in this being unsustainable in term of resulting GC load.

Describe the solution you'd like

I would like to suggest some alternatives :

Describe alternatives you've considered

Due to current design of most classes there is sadly no alternative as there is no control over the buffers allocations in constructors.

Tags

Performance

@thibault-reigner thibault-reigner added the enhancement Feature request or other improvements of existing functionality label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request or other improvements of existing functionality performance
Projects
None yet
Development

No branches or pull requests

1 participant