We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a31ed3 commit b95e493Copy full SHA for b95e493
src/details/registry.cpp
@@ -70,7 +70,7 @@ namespace spdlog {
70
71
// if the map is small do a sequential search, otherwise use the standard find()
72
std::shared_ptr<logger> registry::get(const std::string &logger_name) {
73
- if (loggers_.size() <= 20) {
+ if (loggers_.size() <= 10) {
74
for (const auto &[key, val]: loggers_) {
75
if (logger_name == key) {
76
return val;
@@ -89,7 +89,7 @@ namespace spdlog {
89
std::shared_ptr<logger> registry::get(std::string_view logger_name) {
90
std::lock_guard<std::mutex> lock(logger_map_mutex_);
91
92
93
94
95
0 commit comments