[Fontconfig] Application startup performance

Keith Packard keithp at keithp.com
Mon Jan 11 07:30:51 PST 2016

Behdad Esfahbod <behdad.esfahbod at gmail.com> writes:

> Humm.  I don't know when things changed, but as far as I understand, we
> readdir() every time; the cache just caches the patterns for each
> file.

That's wrong -- fontconfig knows all of the directories in the hierarchy
and should be able to just stat each of them; if none of the existing
directories have changed, then no new fonts could have been added to the
system. Stat'ing a few known directories should suffice to track whether
the cache is up to date. And, it used to work this way, so something has
been broken.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20160111/888a5477/attachment.sig>

More information about the Fontconfig mailing list