[Fontconfig] FcConfigNormalizeFontDir considered harmful

Keith Packard keithp at keithp.com
Sun Aug 27 18:00:24 PDT 2006

In looking at this code, it's reading every directory in the font
hierarchy and stat'ing every file. That's a lot of what the font caches
are supposed to avoid; all of those syscalls at application startup.

I'm trying to figure out what we're attempting here; the old cache code
would already infinite loop if the font directories had circular
symlinks, so this isn't necessary from a robustness perspective.

If the only thing the code is for is to eliminate duplicate caches for
the same directory reached by multiple paths, then I don't think that's
necessary either; again, the old code would have loaded the caches twice
in that case.

I think we can just eliminate the path normalization entirely.

keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20060827/5dd8deef/attachment.pgp

More information about the Fontconfig mailing list