FcConfigNormalizeFontDir considered harmful

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
Arguments?

-- 
keith.packard@xxxxxxxxx

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux