[Fontconfig-bugs] [Bug 94427] Performance regression in git compared 2.11
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Apr 5 00:52:22 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=94427
--- Comment #12 from msnduy at hotmail.de ---
Noob here.
I have noticed that there is an inefficiency in the function: FcCacheDirsValid
(That was newly added).
The only value that it is really using is "FcCache::dirs_count" so the whole
stuff around "FcStrSet" is totally rubbish. One could simply rewrite the
"FcDirScanOnly" function so that it only counts the directories (dirs_count)
without all that stringset stuff.
https://gist.github.com/anonymous/5117f5ac08ae50f38e12ddebd1fb2e41
(Had a hard time writing that code, my C is a little rusty...)
Note: The patch compiles but I haven't tried it yet.
--
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/20160405/68b6d9c7/attachment.html>
More information about the Fontconfig-bugs
mailing list