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

Fix the high latency on the subscriber due to zenoh bytes conversion #340

Merged

Conversation

YuanYuYuan
Copy link
Contributor

Recently, higher latency has been observed on the zenoh-cpp porting.
The reason is doing zenoh bytes conversion in take_one_message is way slower than doing so in the subscriber callback.

@ahcorde ahcorde merged commit b62a6e2 into ros2:ahcorde/dev/1.0.0-cpp Dec 16, 2024
6 checks passed
@@ -224,7 +225,7 @@ bool SubscriptionData::init()

sub_data->add_new_message(
std::make_unique<SubscriptionData::Message>(
sample.get_payload().clone(),
sample.get_payload().as_vector(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I have a serious concern about this, but I'll leave a comment in the other PR since it is already merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Also answered in that PR 😄.

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.

3 participants