Skip to content

Update send_file callback to save a system call #192

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

acogoluegnes
Copy link
Contributor

The callback is used in RabbitMQ to send the frame header. This commit changes the callback to expect a binary result and to send it along the chunk header. This saves a system call and improves performance with small chunks.

The callback is used in RabbitMQ to send the frame header. This commit
changes the callback to expect a binary result and to send it along the
chunk header. This saves a system call and improves performance with
small chunks.
acogoluegnes added a commit to rabbitmq/rabbitmq-server that referenced this pull request Jul 4, 2025
This saves a system call by sending the frame header and the chunk
header at the same time.

References rabbitmq/osiris#192
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.

1 participant