2 ms·
Technology still matters. It's not native vs not-native, there are many points along this scale. An app written in Swift on an iPhone should run faster than a s
by karmakaze 6y ago
Technology still matters. It's not native vs not-native, there are many points along this scale. An app written in Swift on an iPhone should run faster than a similar app in Java on Android. If they run about the same, remember that the iPhone can do it with less memory and battery consumption. The Java Android app is more native than a React-Native app executing js.
- juststeve 6y agoyep, so the goal should be to compile everything down to light binary images the first time, and not require mobile devices work it all out at runtime.
- pjmlp 6y agoModern Android versions have multiple tiers. Interpreter written in Assembly for fast startup, if the application was never executed. Followed by JIT compilation to native code and when the device is idle, the PGO data collected by the JIT is used to produce a binary for direct native execution. As of Android 10 those PGO files are uploaded to the stores and then if a similar device installs the application, they will get the PGO data as well and thus achieve a relatively fast result for their initial compilation.