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

Optimize away z_bytes_copy_from_buf in rmw_publish #42

Draft
wants to merge 5 commits into
base: dev/1.0.0
Choose a base branch
from

Conversation

fuzzypixelz
Copy link
Member

No description provided.

@fuzzypixelz fuzzypixelz added the enhancement New feature or request label Nov 20, 2024
@fuzzypixelz fuzzypixelz self-assigned this Nov 20, 2024
@YuanYuYuan
Copy link
Collaborator

Hi @fuzzypixelz ,

  1. It seems that the memory allocation is infallible. We may return the error if there is not sufficient memory.
  2. It's better to attach the zenoh_rmw_eval results to ensure this PR also passes most of the tests.

1. `z_bytes_copy_from_buf` is replaced by `z_bytes_from_buf`.
2. A pool of serialization buffers is introduced to reduce
   allocations and improve cache locality.
@fuzzypixelz fuzzypixelz changed the title Optimize rmw_publish Optimize away z_bytes_copy_from_buf in rmw_publish Nov 21, 2024
zenoh added 3 commits November 22, 2024 17:05
Wip
DONE:
- Fix std::string constructor call in rmw_subscription_data.cpp
- Move serialization buffer pool to the context

TODO:
- Remove printf calls
- Remove sanitizer usage
- Fix formatting
- Resolve FIXMEs in BufferPool impl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants