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

Don't copy contiguous bytes on reception (backport #343) #383

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

Yadunund
Copy link
Member

@Yadunund Yadunund commented Jan 2, 2025

Replacement for #376

* Don't copy contiguous bytes on reception

This uses the slices iterator API of zenoh-cpp to avoid unecessarily
copying bytes into a vecotr, if and only if the bytes is made up of
exactly one slice.

* Don't use auto type specifiers

* Remove unused `<vector>` includes

* Explain lifetime of `Contiguous::slice`

* Move `Payload` into `zenoh_utils`

Signed-off-by: Mahmoud Mazouz <mazouz.mahmoud@outlook.com>
Co-authored-by: Chris Lalancette <clalancette@gmail.com>
@Yadunund Yadunund merged commit dd809f6 into jazzy Jan 2, 2025
4 checks passed
@Yadunund Yadunund deleted the mergify/bp/jazzy/pr-343 branch January 2, 2025 18:44
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