From 3fe518979c11fa7aebf16eae8e6a008479ca567c 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 87fec7cfc..b4fba89bc 100644 --- a/cre.cpp +++ b/cre.cpp @@ -546,6 +546,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);