eclipse-zenoh / zenoh-pico

Eclipse zenoh for pico devices
Other
123 stars 79 forks source link

Add manual batching mechanism #758

Closed jean-roland closed 1 month ago

jean-roland commented 1 month ago

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.

github-actions[bot] commented 1 month ago

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