From 099bb830cf79c07821be18bf33f92d222f2cf3a4 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 15 Apr 2018 19:15:18 +0100 Subject: easylogging++: cached allowed categories It turns out this can be fairly heavy when logging a lot --- external/easylogging++/easylogging++.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'external/easylogging++/easylogging++.h') 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 m_modules; std::deque> m_categories; + std::map m_cached_allowed_categories; std::string m_categoriesString; std::string m_filenameCommonPrefix; }; -- cgit v1.2.3