Optimize appstream pool access on startup
I noticed my Discover takes several seconds to start and shortly freezes during the loading animation.
Profiling indicates that Appstream::Pool::components() in the Flatpak backend is the biggest offender.
I currently have 5 updateable Flatpak things, and for each we call componentsByFlatpakId
, which calls m_pool->components()
, which each time takes about 600ms.