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: improve StreamProxyInputStream #1068

Merged
merged 1 commit into from
Aug 17, 2024

Conversation

sebthom
Copy link
Member

@sebthom sebthom commented Aug 16, 2024

the current implementation is sub optimal as it creates a new queue element for each byte read from the process.
the new implementation queues arrays of bytes instead, resulting in fewer queue elements and in avoiding byte -> Byte -> byte conversions. this also reduces GC pressure in the Eclipse IDE process.

I also implemented read(final byte[] buf, final int off, final int len) which improves bulk read performance.

@mickaelistria mickaelistria merged commit 1d6a5f5 into eclipse:main Aug 17, 2024
6 checks passed
@mickaelistria
Copy link
Contributor

Thank you for this interesting improvement!

@sebthom sebthom deleted the StreamProxyInputStream branch August 23, 2024 11:41
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