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

[jvm] Improve NativeOutput performance #11944

Merged

Conversation

barisyild
Copy link
Contributor

This commit improves NativeOutput performance

POC

var bytes:Bytes = Bytes.alloc(1024 * 1024 * 100);
socket.output.writeInput(new BytesInput(bytes));

Benchmark Results

Before

JVM: 800-1100 kb per second
C++: 200-300 mb per second

After

JVM: 200-300 mb per second
C++: 200-300 mb per second

@skial skial mentioned this pull request Jan 27, 2025
1 task
@Simn
Copy link
Member

Simn commented Jan 27, 2025

Thanks, looks good! If you're interested, there's also #11487 which is a similar problem for reading.

@Simn Simn merged commit c80a17c into HaxeFoundation:development Jan 27, 2025
61 checks 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.

2 participants