I have been notified by a user that JUCE apps are very slow to start up on machines with a large number of fonts. For example , when 400 MB of truetype fonts are installed, the JUCE applications typically spends more than 10 seconds running the “enumerateFaces” fonction in juce_linux_Fonts.cpp during startup , with a large disk activity. When starting the application again, it only spends 1 second in enumerateFaces because the files are already in the system disk cache. One can manually flush the disk cache with “sudo sysctl vm.drop_caches=3” , and then the startup time is 10 seconds again.
I wonder if there is an easy fix , as I’m just using the default fonts.
The non-easy fix would probably be to use the fontconfig api to enumerate the fonts, but I don’t know much about it.