For two seconds per invocation, to make sure that mtimes are
up-to-date. And fontconfig's defoma integration script calls fc-cache
multiple times, so we end up with a delay many times that.
Here are a few ideas how to fix that:
(a) Instead of sleeping, keep track of mtimes and inode numbers in the
cache, and use an exact comparison instead of ordering.
(b) Readjust back one second the mtime of the cache files.
(c) Do not sleep if the cache files have not been updated.
(d) Sleep only until a new second has begun.
Only the first approach is relatively safe in the presence of NTP, but
this is no regression. (d) is pretty useless without (c) because the
second call via defoma will sleep for almost a full second. (a) is
rather difficult to implement because the mtime comparison is based on
directories, and not files. (b) doesn't actually work because the
comparison is exact, not ordering-based.
So I will look into implementing (c) and (d).
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]