-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Startup is extremely slow on Android #371
Comments
Hi @brianchirls |
I tried it today with the latest version of NativeScript on Nexus 4 (Android 5.1) and startup time is still slow (about 5-6 seconds until TAP button is shown)
|
Just tried this in 1.1.1 and my "app" (a XML page, no code beyond the basic app.js) takes 13 seconds to start. This is really pretty unacceptable. No one waits for a web page beyond 3 seconds, and they sure as hell don't want to wait 13 seconds for a "native" app to start. This needs to be improved. |
Hello @bfattori, indeed, 13 seconds are abnormally high. Can you tell us what device are you using for your test and which OS version it runs? |
I'm sorry, I jumped the gun. That was on the emulator. On device it is a You can reclose the issue.
|
I dunno... running the "Groceries" 'angular-start' code, with very, very basic code takes 5-6 seconds on my Nexus 6 device. This is pretty bad. I may re-open this or log a new issue if it continues this way. I don't even know where to begin profiling, since it's Nativescript. |
The app I'm currently writing takes at least 7 seconds before anything is shown on a Nexus 7. This is too slow. N.B. This isn't a release build and I'm not sure if that would be faster. I'm using Nativescript 2 + Angular + Typescript. |
I have the same problem |
Is startup time for Android going to be improved in future releases? Currently I think it's so slow that NativeScript is close to unusable on Android. Can this issue be re-opened? |
Just rebuilt my app using Nativescript but not using Angular 2. Startup is now much faster and acceptable. (~3 seconds). The slow factor seems to have been Angular 2. |
Same issue here, without Angular app startup is much faster. Tested on Android 6. |
How do you guys get a refresh in 5-6 seconds? It's 5-6 minutes for me, but a fresh build sometimes takes 20-25 minutes with a blank new app. It doesn't matter if it's Angular or not. It's a Samsung J1 with Android 6.0.1. |
As for May 09/2018, nativescript 4.0.0, I run the javascript template, and it takes 5 seconds tops to run. However, when I go for the angular template, and even after I enableProdMode(), I get no less than 24 seconds every time, on my moto c plus, android 7.0;
|
Can you please try with NativeScript 4.1 and Angular 6, it contains a lot of performance improvements, specially in case you optimize your app with webpack. |
The Hello World application often takes a very, very long time to show any interface and run the
loaded
callback. The last time I ran it on the emulator (X86 emulator with HAX installed), it took 37 seconds from the time the app showed up with a blank white screen and menu bar. I've seen it take long enough to get a "not responding" warning. It's also slow running on my actual device (Nexus 4).I don't have this problem with other Android apps I built in pure Java with Android Studio. Start-up of Hello World on the iOS emulator is instantaneous.
The text was updated successfully, but these errors were encountered: