From 9e786e0eedea50facff9bbef0c8c6a7cc6f53114 Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Thu, 4 Oct 2012 08:26:08 +0100 Subject: [PATCH] Small typo that wasted millions of instructions. Now that #define CRENGINE_DEBUG is handled correctly, all those pesky messages from crengine are gone and so the performance of crereader should be much better --- remember that under some circumstances crengine generates literally THOUSANDS of debug messages per second (e.g. when complaining about corrupt TOC nodes and there are _plenty_ of fb2 files out there which have an invalid structure). --- cre.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cre.cpp b/cre.cpp index ef3aca8b1..6277233f4 100644 --- a/cre.cpp +++ b/cre.cpp @@ -575,7 +575,7 @@ int luaopen_cre(lua_State *L) { /* initialize font manager for CREngine */ InitFontManager(lString8()); -#ifdef DEBUG_CRENGINE +#if DEBUG_CRENGINE CRLog::setStdoutLogger(); CRLog::setLogLevel(CRLog::LL_DEBUG); #endif