[poppler] splash/SplashFont.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Sun Sep 5 06:27:40 PDT 2010
splash/SplashFont.cc | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 2fc83068c32e09fa3de03a157a420490431ea706
Author: Albert Astals Cid <aacid at kde.org>
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 <aacid at kde.org>
+// Copyright (C) 2007-2008, 2010 Albert Astals Cid <aacid at kde.org>
//
// 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;
More information about the poppler
mailing list