[Fontconfig-bugs] [Bug 64766] Make fontconfig scanning faster

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed May 22 13:43:26 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=64766

--- Comment #5 from nfxjfg at gmail.com ---
> That is required to let fontconfig know what the glyph coverage a font has.

Somehow freetype seems to spend rather a lot of effort on that. I don't know
how this stuff works, but to my naive eyes is looks like there's further
optimization possible, though possibly that would require changes in freetype
instead of fontconfig.

>> When a directory changes, we rescan the entire directory to rebuild the
>> cache for that dir.

> I have no idea how this can be improved though.

For example, the granularity of the cache could be changed and create a new
cache for every 20 files or so. Or it could be made such that the old cache is
reused for files that have not changed. No doubt, these changes would be
intrusive to the cache code, but given the problems with font scanning times, I
think it would be worth it.

Now that you have added a hash for each font, maybe it would be possible to
cache the results for memory fonts as well? Hashing actually makes loading a
font even slower, but since you're doing it anyway, maybe it could be used for
that purpose as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20130522/0ba0b505/attachment.html>


More information about the Fontconfig-bugs mailing list