-
-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow startup of the nightly comparing to release #18168
Comments
OsmAnd Nightly 4.6.0#849m, released: 2023-10-09 video_2023-10-10_01-19-13.mp4 |
OsmAnd 4.6.2, released: 2023-09-27 When compared to the release version, launching the release version is almost 5 seconds faster: video_2023-10-11_02-10-07.mp4 |
Not actually reproduced on my device probably it's related to tracks or not. Did you try latest beta release? |
I tried a clean installation of the nightly build, the first launch of Osmand without a map took 7 seconds. Then I downloaded one map and Osmand began to load in about 10-11 seconds. The version from the google play loads in 4 seconds. |
Release version might be precompiled cause they are installed from Google Play. |
Logs are identical (please attach again)
|
Google Play - 3 seconds
|
Well the answer pretty clear there is no JIT optimization on APK level https://source.android.com/docs/core/runtime/jit-compiler (it is done only once uploaded to google play). |
So unfortunately I think it will be waste of time to try to optimize "debug" level code when "runtime" works fine |
I'm not familiar with android architecture. But why then are there no problems with builds from fdroid? And in general it’s strange that nightly builds show different speeds on different phones. |
|
Slow startup nightly log:
|
|
Nighlty starts 5x times slower on my devices 3s vs 15s and I didn't find any workaround yet :-( https://www.reddit.com/r/android_beta/comments/14yh35l/this_is_how_to_force_optimize_android_beta_or/ - so it becomes very inconvenient to use nighlty probably we will be forced to use public beta more often |
Good news, today's nightly build of Osmand~ 4.7.0#1765m is fast again. |
@vshcherb Sorry for only just now discovering this thread: In my experience, there is zero performance difference between a release build and a debug build if only in build.gradle you specify this for the debug build (I get like 5 sec startup time with dozens of maps present): |
I recently noticed that the nightly build of osmand runs very slowly (10-12 second's) compared to version 4.6.0 from google play or version 4.5.10 from fdroid (3 second's).
I did a reset of the app and then uninstalled and reinstalled it. But the night build still takes a long time to start. I made several rollbacks, the last one to OsmAnd~ 4.5.0#35827m, release date: 2023-04-21, but the result is the same.
I suspect it's related to the phone model, based on a small poll in the telegram chat.
Below is a link to a video where I run the nightly build of the app first, and then the google play version.
https://t.me/ruosmand/136939
The text was updated successfully, but these errors were encountered: