Open Rairosu opened 5 months ago
There is a first query to build the icon index then its cached on every subsequent request:
That said, in the current implementation, the cache still need to be loaded on every start.
We could store this in db to make it available on next launch. Note that it has the potential to be out of sync if the user uninstall or add new desktop entries, change their theme etc.
A correct implementation should greedily load the cache on start, then fetch the up to date icon index in the background and replace the current cache with actual runtime values.
PRs welcome :)
I looked at this line already and my point is that it is missing for the else
case, but i didn't want to submit a pr for one line of code. The idea of storing it in the db sounds nice, as it still stutters on startup a bit, even with caching all icons, maybe i get around to doing a pr for that ^^
Currently application icons are not being cached, which results in onagre microfreezing everytime I try to search for an application.
If there is no specific reason against caching those icons, I would like those icons to be cached.