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

Add manual batching mechanism #758

Open
wants to merge 20 commits into
base: dev/1.1.0
Choose a base branch
from

Conversation

jean-roland
Copy link
Contributor

@jean-roland jean-roland commented Oct 22, 2024

Closes #298. This adds an API to do manual batching which yields improved throughput performance for smaller packets.

User can start batching with zp_start_batching, any subsequent api call that would have put a network message (z_put, z_get, z_declare...) is bufferized to be later sent as a batch (or multiple batches) when user calls zp_stop_batching.

While I was modifying the transports I decided to refactor a little because the functions were too complicated to parse.

Copy link

PR missing one of the required labels: {'new feature', 'enhancement', 'dependencies', 'internal', 'breaking-change', 'documentation', 'bug'}

@jean-roland jean-roland added the enhancement Things could work better label Oct 22, 2024
include/zenoh-pico/api/primitives.h Outdated Show resolved Hide resolved
src/transport/multicast/transport.c Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Things could work better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants