<dnkl>
lechner: from what I can tell, fontconfig is loading the cache properly. It isn't loading the actual fonts. Which would mean the problem is NFS. Even though the font data is cached, it still need to access a lot of files.
fnurkla has joined #foot
rcf has quit [Quit: WeeChat 3.3-dev]
rcf has joined #foot
rcf1 has joined #foot
rcf1 has quit [Client Quit]
rcf has quit [Quit: WeeChat 3.3-dev]
rcf has joined #foot
rcf1 has joined #foot
rcf has quit [Quit: WeeChat 3.1]
rcf1 is now known as rcf
rcf has quit [Quit: WeeChat 3.3-dev]
rcf has joined #foot
st3r4g has quit [Read error: Connection reset by peer]
st3r4g has joined #foot
st3r4g has quit [Read error: Connection reset by peer]
st3r4g has joined #foot
<lechner>
Arnavion: .local/share/fonts is the newer location, right. I thing I should at least copy all fonts there
<lechner>
dnkl: thangs for the explanations! does that sound like a bug in fontconfig in spirit? it seems like caching is implemented only partially
<lechner>
dnkl: or maybe fc does not cache some aspect of your missing glyphs search
hexa- has quit [Quit: WeeChat 3.1]
hexa- has joined #foot
<dnkl>
lechner: don't think there's a bug here. Having caches on network drives is just bad, in general.
<dnkl>
It does cache everything we need. From your trace we can see that it does NOT load the fonts themselves. Just the cache files
<lechner>
dnkl: doesn't it still stat 8000 files?
<dnkl>
It does. Because fontconfig, by design, had one cache file for either each font file, or each font *directory* (but sure which), it still needs to stat all those cache files
<dnkl>
It also looks like it first tries in /var/... before looking in ~/.cache
<dnkl>
S/but/not
<lechner>
i see
<lechner>
thanks for the research! it still seems like a high price to pay for whatever foot needs
<dnkl>
This shouldn't be foot specific. But it _may_ be possible to defer some of this to when we want to (maybe) load a fallback font
<dnkl>
If you're not seeing this delay in other applications, they might be doing similar
<dnkl>
lechner: looks like fontconfig stats all font *directories*. If I'm right, you should see a huge improvement if you dump all fonts in the same directory (with no sub-directories)
<dnkl>
lechner: fwiw, I tried commenting out *all* code that deals with the fallback fonts, and fontconfig still stat:ed all my font directories
<dnkl>
lechner: if you can compile fcft yourself (or build foot against a patched fcft sub-project), you could try patching line 436, and change FcTrue to FcFalse in the FcFontSort call
<dnkl>
I doubt this will make a difference, so probably not worth the trouble if you're not sure how to do it
<lechner>
dnkl: thanks! my issue is probably that the cache is on NFS as well, and kept on a per-font basis
rcf has quit [Quit: WeeChat 3.1]
rcf has joined #foot
alice has quit [Remote host closed the connection]
novakane has quit [Quit: WeeChat 3.2]
novakane has joined #foot
st3r4g has quit [Read error: Connection reset by peer]
st3r4g has joined #foot
<lechner>
dnkl: fwiw, i consolidated my fonts in ~/.local/share/fonts, which according to fc-list | wc -l brought them down to 5200 and ran fc-cache -f as user. now foot starts up in one second. thanks for all your help earlier, everyone!
st3r4g has quit [Ping timeout: 258 seconds]
st3r4g has joined #foot
<dnkl>
lechner: glad you worked it out :)
<lechner>
sorry to take up your valuable time
ifreund has joined #foot
fnurkla has quit [Ping timeout: 240 seconds]
fnurkla has joined #foot
st3r4g has quit [Read error: Connection reset by peer]
novakane has quit [Quit: WeeChat 3.2]
st3r4g has joined #foot
st3r4g has quit [Read error: Connection reset by peer]
st3r4g_ has joined #foot
st3r4g_ has quit [Read error: Connection reset by peer]
craftyguy has quit [Remote host closed the connection]