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

perf: add proxy cache to avoid the deserialize step #140

Merged
merged 3 commits into from
Dec 31, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(proxy_plugin): Dynamically register cache serialization types
  • Loading branch information
yglsaltfish committed Dec 31, 2024
commit c8a6ee7a2d5b5009eb91373a043e9b3d7c2f8cd0
7 changes: 5 additions & 2 deletions src/plugins/proxy_plugin/proxy_plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,11 @@ void ProxyPlugin::RegisterSubChannel() {
.topic_name = topic_meta.topic_name,
.pkg_path = type_support_wrapper.options.path,
.module_name = "core",
.msg_type_support_ref = type_support_wrapper.type_support_ref},
.require_cache_serialization_types = {"pb", "ros2", "json", "yaml"}};
.msg_type_support_ref = type_support_wrapper.type_support_ref}};

for (const auto& it : type_support_wrapper.type_support_ref.SerializationTypesSupportedListSpan()) {
subscribe_wrapper.require_cache_serialization_types.emplace(it.str);
}

subscribe_wrapper.callback = [this, action_raw_ptr = proxy_action.get()](
MsgWrapper& msg_wrapper, std::function<void()>&& release_callback) {
Expand Down
Loading