Skip to content

Conversation

@shivaspeaks
Copy link
Member

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
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

netty: Swap to UniformStreamByteDistributor

2 participants