Reputation: 59
Our application was developed with nativescript 4. The change of rules at the level of the Android Store has forced us to go under nativescript 6. Since our application is very slow. For example the password entry sometimes freezes, there is latency when selecting in a menu. Has anyone meet the same issues and has a solution to improve the responsiveness of the application?
ps: we already use the following compile options: - env.aot --env.snapshot --env.uglify --production
thank you in advance
Upvotes: 5
Views: 933
Reputation: 11223
If you are using 6.1, adding the "markingMode: none" option to your project will probably speed the things up. The performance degradation is caused by changes in the V8 Garbage Collection routine. The markingMode: none option eliminates the overhead that NativeScript adds on top of the V8 algorithm and in fact it should be faster than what you used to experience in {N} 4.0.
Fore more information on how to enable this option, checkout this article: https://docs.nativescript.org/core-concepts/android-runtime/advanced-topics/marking-mode-none#updating-an-app-or-a-plugin-to-support-markingmode-none
More context on the matter can be found in the NativeScript Blog
Upvotes: 6