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
feat: Optimize the traversal method for type list
  • Loading branch information
yglsaltfish committed Dec 31, 2024
commit 640b8e5409dc967a0566c48d1f8c0e5fff79c8f6
4 changes: 2 additions & 2 deletions src/plugins/proxy_plugin/proxy_plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ void ProxyPlugin::RegisterSubChannel() {
.module_name = "core",
.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);
for (const auto type_list = type_support_wrapper.type_support_ref.SerializationTypesSupportedListSpan(); const auto& type : type_list) {
subscribe_wrapper.require_cache_serialization_types.emplace(type.str);
}

subscribe_wrapper.callback = [this, action_raw_ptr = proxy_action.get()](
Expand Down
Loading