splash/SplashFont.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
New commits: commit 2fc83068c32e09fa3de03a157a420490431ea706 Author: Albert Astals Cid <[email protected]> Date: Sun Sep 5 14:26:27 2010 +0100 Increase the number of cached glyphs for small sizes Should not increase memory usage much and gives me a 17% speed increase in the firefox nytimes advertisment pdf diff --git a/splash/SplashFont.cc b/splash/SplashFont.cc index 400d7cc..2bfcdc8 100644 --- a/splash/SplashFont.cc +++ b/splash/SplashFont.cc @@ -11,7 +11,7 @@ // All changes made under the Poppler project to this file are licensed // under GPL version 2 or later // -// Copyright (C) 2007-2008 Albert Astals Cid <[email protected]> +// Copyright (C) 2007-2008, 2010 Albert Astals Cid <[email protected]> // // To see a description of the changes please see the Changelog file that // came with your tarball or type make ChangeLog if you are building from git @@ -79,7 +79,11 @@ void SplashFont::initCache() { // set up the glyph pixmap cache cacheAssoc = 8; - if (glyphSize <= 256) { + if (glyphSize <= 64) { + cacheSets = 32; + } else if (glyphSize <= 128) { + cacheSets = 16; + } else if (glyphSize <= 256) { cacheSets = 8; } else if (glyphSize <= 512) { cacheSets = 4; _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
