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

Change default value of MAX_MESSAGES_PER_READ to 16 for all Channel i… #221

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

normanmaurer
Copy link
Member

…mplementations

Motivation:

All hannel implementations used a MAX_MESSAGES_PER_READ of 1 due the fact of how they used the ChannelMetaData constructor. This makes no sense and hurts performance a lot as it will basically result in have fireChannelRead(...) only called once and then direct fireChannelReadComplete(...).

Modifications:

Use a default of 16 messages per read

Result:

Better performance with default settings

…mplementations

Motivation:

All hannel implementations used a MAX_MESSAGES_PER_READ of 1 due the fact of how they used the ChannelMetaData constructor. This
makes no sense and hurts performance a lot as it will basically result in have fireChannelRead(...) only called once and then direct fireChannelReadComplete(...).

Modifications:

Use a default of 16 messages per read

Result:

Better performance with default settings
@normanmaurer normanmaurer added this to the 0.0.24.Final milestone Nov 2, 2023
@normanmaurer normanmaurer merged commit c6b204c into main Nov 2, 2023
8 checks passed
@normanmaurer normanmaurer deleted the max_messages_per_read branch November 2, 2023 10:00
@franz1981
Copy link
Contributor

OMG, I've completed missed it!!!!

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