-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a few simple performance enhancements (#72)
* Default initialize validate_schema with false * Only validate var subscription if validate_data_with_schema is set * Add some caching of module info * Make some data accesses a bit more efficient * Pass topic to check_topic_matches as const ref Signed-off-by: Kai-Uwe Hermann <[email protected]> --------- Signed-off-by: Kai-Uwe Hermann <[email protected]>
- Loading branch information
1 parent
7afb87f
commit 0576ad1
Showing
7 changed files
with
95 additions
and
39 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 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// Copyright 2020 - 2023 Pionix GmbH and Contributors to EVerest | ||
#ifndef UTILS_CONFIG_CACHE_HPP | ||
#define UTILS_CONFIG_CACHE_HPP | ||
|
||
#include <set> | ||
#include <string> | ||
#include <unordered_map> | ||
|
||
#include <utils/types.hpp> | ||
|
||
namespace Everest { | ||
using json = nlohmann::json; | ||
|
||
struct ConfigCache { | ||
std::set<std::string> provides_impl; | ||
std::unordered_map<std::string, json> cmds; | ||
}; | ||
|
||
} // namespace Everest | ||
|
||
#endif // UTILS_CONFIG_CACHE_HPP |
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
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
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