Skip to content

Conversation

@vietj
Copy link
Member

@vietj vietj commented Apr 28, 2025

Motivation:

When the socket uses pipeling and there are pending messages (due to pipelining limit), the pending message queue will likely be examined for sending by each message read.

Examining the pending message queue is more efficient when done upon channel read complete.

Changes:

Move the pending message check in the read completion event, rather that after each processed messsage.

@vietj vietj added this to the 5.0.0 milestone Apr 28, 2025
@vietj vietj self-assigned this Apr 28, 2025
Motivation:

When the socket uses pipeling and there are pending messages (due to pipelining limit), the pending message queue will likely be examined for sending by each message read.

Examining the pending message queue is more efficient when done upon channel read complete.

Changes:

Move the pending message check in the read completion event, rather that after each processed messsage.
@vietj vietj force-pushed the use-read-completion-event-to-process-pending-messages branch from 8d41f50 to 02729e6 Compare April 28, 2025 08:58
@vietj vietj merged commit 77d221b into master Apr 28, 2025
18 checks passed
@vietj vietj deleted the use-read-completion-event-to-process-pending-messages branch April 28, 2025 09:25
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