[Fontconfig-bugs] [Bug 94427] Performance regression in git compared 2.11
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Mar 29 18:25:55 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=94427
--- Comment #6 from Peter <fontconfigbugs at uninformativ.de> ---
To be more precise, the commit mentioned above adds a call to FcDirScanOnly()
which causes all the stat() calls Antonio has seen. FcDirScanOnly() will
*always* be called, even if the cache turns out to be perfectly valid.
To give you some more numbers, a "time fc-list" in a terminal went from ~30ms
with fontconfig 2.11.1 to ~200ms with fontconfig 2.11.94. As a result,
seemingly "simple" applications like dmenu show a noticeable lag on startup.
I'm on an i7-3770 with 32GB RAM, so neither CPU speed nor the size of IO cache
should be an issue here.
I'm not familiar with fontconfig's code, but I noticed that FcCacheDirsValid()
gets called 18 times. Is that neccessary? I added some ugly static variables to
make fontconfig "cache" the first return value of FcCacheDirsValid() and I'm
back at my ~30ms. Thus, *one* call to FcDirScanOnly() is just fine.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20160329/ec435a9f/attachment.html>
More information about the Fontconfig-bugs
mailing list