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

Reduce memory allocations with pooled memory #160

Open
prat0088 opened this issue Mar 16, 2021 · 1 comment
Open

Reduce memory allocations with pooled memory #160

prat0088 opened this issue Mar 16, 2021 · 1 comment

Comments

@prat0088
Copy link

What do you think about replacing lines that could allocate large amounts of memory, like this

with ArrayPool or similar? It would take a lot of pressure off the GC, especially for values larger than 85KB that will be stored on Large Object Heap, eventually pausing your application when reclaimed.

GC pauses can become an issue if you have a high-throughput, low-latency application pushing large amounts of data.

@prat0088
Copy link
Author

Would you consider a pull request that uses rented bytes from ArrayPool wrapped in an IDisposable?

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

No branches or pull requests

1 participant