aboutsummaryrefslogtreecommitdiff
path: root/external/easylogging++/easylogging++.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-04-15 19:15:18 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-04-25 20:39:46 +0100
commit099bb830cf79c07821be18bf33f92d222f2cf3a4 (patch)
tree5bcdac7110db9ca396d1cfa5eac34b7ac6acc875 /external/easylogging++/easylogging++.h
parentMerge pull request #3670 (diff)
downloadmonero-099bb830cf79c07821be18bf33f92d222f2cf3a4.tar.xz
easylogging++: cached allowed categories
It turns out this can be fairly heavy when logging a lot
Diffstat (limited to 'external/easylogging++/easylogging++.h')
-rw-r--r--external/easylogging++/easylogging++.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/external/easylogging++/easylogging++.h b/external/easylogging++/easylogging++.h
index 3270bd607..6b8b4fc35 100644
--- a/external/easylogging++/easylogging++.h
+++ b/external/easylogging++/easylogging++.h
@@ -2485,6 +2485,7 @@ class VRegistry : base::NoCopy, public base::threading::ThreadSafe {
inline void clearCategories(void) {
base::threading::ScopedLock scopedLock(lock());
m_categories.clear();
+ m_cached_allowed_categories.clear();
}
inline void clearModules(void) {
@@ -2526,6 +2527,7 @@ class VRegistry : base::NoCopy, public base::threading::ThreadSafe {
base::type::EnumType* m_pFlags;
std::map<std::string, base::type::VerboseLevel> m_modules;
std::deque<std::pair<std::string, Level>> m_categories;
+ std::map<std::string, int> m_cached_allowed_categories;
std::string m_categoriesString;
std::string m_filenameCommonPrefix;
};