From 04e6df1fd00d53c69f2029fca8fcc4f842a48add Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 9 Sep 2012 12:58:04 +0200 Subject: [PATCH] use ldomDocCache::init to cache crengine DOM This should improve performance of crengine #206 --- cre.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cre.cpp b/cre.cpp index 609467bbc..9326c5ae5 100644 --- a/cre.cpp +++ b/cre.cpp @@ -567,6 +567,8 @@ int luaopen_cre(lua_State *L) { /* initialize font manager for CREngine */ InitFontManager(lString8()); + ldomDocCache::init(lString16("./cr3cache"), 100); + #ifdef DEBUG_CRENGINE CRLog::setStdoutLogger(); CRLog::setLogLevel(CRLog::LL_DEBUG);