-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat userver: precompile the visitors for recursive loops over protobufs
Before: ``` TrimBench 913 ns 898 ns 7815972 ``` After: ``` TrimBench 657 ns 651 ns 10430325 ``` Tests: CI commit_hash:0f675c5f406e1be2115a48e20bb232a024a26122
- Loading branch information
1 parent
031973e
commit 9cf1546
Showing
13 changed files
with
1,765 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
|
||
#include <initializer_list> | ||
#include <string> | ||
|
||
#include <userver/ugrpc/protobuf_visit.hpp> | ||
|
||
USERVER_NAMESPACE_BEGIN | ||
|
||
namespace ugrpc::impl { | ||
|
||
/// @brief Registers multiple message types during static initialization time | ||
void RegisterMessageTypes(std::initializer_list<std::string> type_names); | ||
|
||
/// @brief Find all known messages | ||
/// | ||
/// @warning This is probably not an exhaustive list! | ||
DescriptorList GetGeneratedMessages(); | ||
|
||
} // namespace ugrpc::impl | ||
|
||
USERVER_NAMESPACE_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.