From fa038547ad92d281d04f19235680aa46a9f5422c Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 9 May 2015 16:39:23 +0300 Subject: [PATCH] tweakme.h comments --- include/spdlog/tweakme.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/spdlog/tweakme.h b/include/spdlog/tweakme.h index 9e56b202..bf65ad25 100644 --- a/include/spdlog/tweakme.h +++ b/include/spdlog/tweakme.h @@ -67,12 +67,14 @@ /////////////////////////////////////////////////////////////////////////////// -// Uncomment to enable lockless registry +// Uncomment to avoid locking in the registry operations (spdlog::get() spdlog::drop() spdlog::register()) +// Use only if your code is single threaded or never modifes concurrently the registry // #define SPDLOG_NO_REGISTRY_MUTEX /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// -// Uncomment to enable vector based registry +// Uncomment to enable vector based registry instead of the default unordered_map +// spdlog::get(..) operations will be faster on small registry sizes (upto ~10-20 loggers) // #define SPDLOG_VECTOR_BASED_REGISTRY ///////////////////////////////////////////////////////////////////////////////