Application startup times in SailfishOS
As demonstrated in a recent video comparison on same HW (https://www.youtube.com/watch?v=YMkpLcvZUew) it seems silica apps take significantly more time to load than android counterparts. One app seems to load almost instantly - gallery. Rest go through a rather long (0.7-2s) loading animation before starting. Not sure if gallery has some components preloaded in memory that allowed it to be the only app to tie, just curious as apps like clock are pure qml with minimal storage usage, yet they also take a considerable time to load. As most phones now ship with >2Gb ram maybe an option to pre-load base qt libs (or whatever makes gallery open up so quick) should be an option? IIRC n900 had something like that for dialer and browser as most common apps expected to be used often, but not 100% sure.
I would try with a patch that makes the animation shorter if it helps to improve the situation: https://github.com/cornerman/sailfishos-patch-less-home-animations
Seems that SFOS animates into the homescreen, displays the running window tile and only then runs the application. I could be wrong but that seems to me based on the video.
salarelv ( 2019-10-03 22:04:56 +0200 )editThe homescreen -> spawn cover animation is like 0.2 seconds, even if you cut it out completely we end up with 0.5-1.5s overhead for some apps (with even basic qml apps around 0.5s). Check how quickly the gallery app starts in the video even with the homescreen and cover spawning animations, it skips the circle loading completely, which leads me to the conclusion it had either parts preloaded or... idk, extremely well optimised app, doubtful
szopin ( 2019-10-03 22:10:51 +0200 )editProbably the 'booster [silica-media]' process from mapplauncherd is responsible for shorter startup of the gallery app, still weird for clock app to launch so slowly if you ldd jolla-clock and jolla-gallery, the latter uses twice as many libs, maybe the boosters need updating
edit: nope, both use silica-qt5 as invoker, only camera seems to use silica-media
szopin ( 2019-10-04 15:06:04 +0200 )edit