<div dir="ltr">Any resolution here? Current master's behavior of stating all fonts is definitely very bad. Anyone volunteer to clean up the cache code a bit?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 18, 2016 at 7:09 PM, Akira TAGOH <span dir="ltr"><<a href="mailto:akira@tagoh.org" target="_blank">akira@tagoh.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Jan 18, 2016 at 5:54 PM, Keith Packard <<a href="mailto:keithp@keithp.com">keithp@keithp.com</a>> wrote:<br>
> Akira TAGOH <<a href="mailto:akira@tagoh.org">akira@tagoh.org</a>> writes:<br>
><br>
>> Not exactly. fontconfig doesn't stat everey directory at runtime but<br>
>> relies on the subdir list in the cache to traverse. so if it isn't<br>
>> outdated and missing some, it won't be picked up by fontconfig.<br>
><br>
> How can it "miss some" if it checks the timestamp of the parent before<br>
> relying on the list?<br>
<br>
</span>Previously fontconfig only locks the file when writing out. the time<br>
to write it out since bringing up fc-cache depends on the time of<br>
collecting data and it takes more time if there are more targeted<br>
files and directories. and likely to see a process finished first<br>
which brought up later.<br>
so I locked out between reading and writing to avoid it.<br>
<span class=""><br>
>> Not sure but perhaps it is. my memory is already vague and not sure if<br>
>> it had a nano second in the mtime. so better testing anyway.<br>
><br>
> Hrm. Is fontconfig even using the higher resolution time when the file<br>
> system supports it?<br>
<br>
</span>Yes. well, very recently. not yet included in any releases.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Akira TAGOH<br>
_______________________________________________<br>
Fontconfig mailing list<br>
<a href="mailto:Fontconfig@lists.freedesktop.org">Fontconfig@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/fontconfig" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/fontconfig</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div>
</div>