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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri May 16 14:42:51 PDT 2014


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

--- Comment #26 from Behdad Esfahbod <freedesktop at behdad.org> ---
Err.   Disabling the 2s wait in fc-cache, new numbers look much worse.  Caching
a collection of > 1000 fonts in one single directory:

  - Currently: 8.5s
  - Without hash: 3s
  - Without FcFreeTypeCheckGlyph: 0.25s

I suggest we do this:

  - Deprecate and NOT compute FC_HASH,

  - Use loca table to reject glyphs with no outline.  For non-TrueType (CFF,
bdf, pcf, etc) just accept whatever the font claims it covers,

  - Remove the 2s wait if file system is not FAT.  This one is not really
important, but nice to have.

Doing these all makes querying memory fonts so fast that I won't hesitate
recommending it to people anymore.

Unless someone has objections, I'll go ahead and push these out.

-- 
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/20140516/82981a3b/attachment.html>


More information about the Fontconfig-bugs mailing list