Skip to content

netty: Swap to UniformStreamByteDistributor #11954

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

Merged
merged 2 commits into from
Mar 11, 2025

Conversation

shivaspeaks
Copy link
Member

@@ -169,8 +169,8 @@ static NettyClientHandler newHandler(
Http2HeadersEncoder.NEVER_SENSITIVE, false, 16, Integer.MAX_VALUE);
Http2FrameWriter frameWriter = new DefaultHttp2FrameWriter(encoder);
Http2Connection connection = new DefaultHttp2Connection(false);
WeightedFairQueueByteDistributor dist = new WeightedFairQueueByteDistributor(connection);
dist.allocationQuantum(16 * 1024); // Make benchmarks fast again.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "Make benchmarks fast again" might want to be preserved in some way. Basically, it is saying, "changing the default for performance."

Copy link
Member Author

@shivaspeaks shivaspeaks Mar 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about "// Tuned for better benchmarks performance."?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Tuned" may be misleading as to exactly how much thought went into the value. How about just "Increased"?

@shivaspeaks shivaspeaks merged commit 2f52a00 into grpc:master Mar 11, 2025
16 checks passed
@shivaspeaks shivaspeaks deleted the netty-uniform-byte-distributor branch March 11, 2025 17:10
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.

netty: Swap to UniformStreamByteDistributor
2 participants