Bug 6227

Summary: Xft should allow XftMaxFreeTypeFiles to be configurable
Product: xorg Reporter: Vladimir Vukicevic <vladimir>
Component: Lib/XftAssignee: Keith Packard <keithp>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: high CC: basic, bzbarsky, jeremyhu, jwalden+bfo
Version: unspecifiedKeywords: love
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard: 2011BRB_Reviewed
i915 platform: i915 features:

Description Vladimir Vukicevic 2006-03-11 18:03:12 UTC
Xft 2.1 hard-codes XftMaxFreeTypeFiles to be 5 in xftfreetype.c, meaning that at
maximum 5 freetype files are open at any given time, with a random one being
evicted if a new one is requested.  This is leading to the problem described in
https://bugzilla.mozilla.org/show_bug.cgi?id=330064 -- basically, if a file with
many scripts is loaded, this leads to significant cache thrashing and file
loading and unloading.  (The file in question jumps between scripts very often.)

We can work around this by doing dlsym hacks to get at XftMaxFreeTypeFiles
(since I note that it's not declared static), but it would be better if this was
explicitly exported via either a function to configure Xft or through a global
xft config.  (though there doesn't seem to bean XftConfig any more?)
Comment 1 Jeremy Huddleston Sequoia 2011-10-02 14:02:59 UTC
Seems trivial enough to do, but this is so old.  Is it still worth doing?
Comment 2 Adam Jackson 2018-06-12 19:09:17 UTC
Mass closure: This bug has been untouched for more than six years, and is not
obviously still valid. Please reopen this bug or file a new report if you continue to experience issues with current releases.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.