[cairo-bugs] [Bug 12787] New: Use a larger scaled glyph cache for CJK languages
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Oct 12 01:17:08 PDT 2007
http://bugs.freedesktop.org/show_bug.cgi?id=12787
Summary: Use a larger scaled glyph cache for CJK languages
Product: cairo
Version: 1.5.1
Platform: Other
URL: http://www.gnome.org/~federico/news-2007-10.html#pango-
cjk-1
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: general
AssignedTo: cworth at cworth.org
ReportedBy: federico at ximian.com
QAContact: cairo-bugs at cairographics.org
CC: pwu at novell.com
Profiles indicate that for CJK languages, glyphs get scaled too frequently
because the default cache is too small:
http://www.gnome.org/~federico/news-2007-10.html#pango-cjk-1
cairo-scaled-font.c has this:
#define MAX_GLYPHS_CACHED_PER_FONT 256
and it includes a comment that it would be better to have a cache shared across
all fonts, with a random replacement policy.
Simply increasing this value to 2048 gives very good results; with the
pango-profile benchmark, scaling glyphs went from using about 60% of the time
to only using about 13%.
This bug is a reminder that a cache shared across shared fonts is desirable.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the cairo-bugs
mailing list