[Fontconfig-bugs] [Bug 64766] Make fontconfig scanning faster

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 24 03:17:31 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=64766

Timo Teräs <timo.teras at iki.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timo.teras at iki.fi

--- Comment #33 from Timo Teräs <timo.teras at iki.fi> ---
(In reply to L A Walsh from comment #29)
> (In reply to comment #3)
> > I have no idea how this can be improved though.
> ----
> Don't do it.
> 
> Only scan the files that are newer than the directory change time.
> If no files are newer, no update.

Please don't do this. When installing fonts via package manager (dpkg, apt,
yum, whatever) they will install new font, and set the timestamp to packaging
time, but the directory mtime is updated.

If possible use individual file's mtime and size, and compare against values
stored in cache. If either differs, the font file is dirty and needs
recalculation.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20141124/079b8ef5/attachment.html>


More information about the Fontconfig-bugs mailing list