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 BufferedWriter allocations #40

Merged
merged 1 commit into from
May 8, 2019
Merged

pool BufferedWriter allocations #40

merged 1 commit into from
May 8, 2019

Conversation

vyzo
Copy link
Contributor

@vyzo vyzo commented May 8, 2019

Profiling relays reveals that a whopping 56% of the allocations are BufferedWriters, and this is the only place where we actually use them.
This pools the allocation to avoid trashing the gc.

@ghost ghost assigned vyzo May 8, 2019
@ghost ghost added the status/in-progress In progress label May 8, 2019
@vyzo
Copy link
Contributor Author

vyzo commented May 8, 2019

I have confirmed that the memory pressure from BufferedWriters disappears in the test relay.

@Stebalien Stebalien merged commit 5fb8f3e into master May 8, 2019
@Stebalien Stebalien deleted the fix/alloc branch May 8, 2019 16:17
@ghost ghost removed the status/in-progress In progress label May 8, 2019
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.

2 participants