3 ms·
...So the Dalvik VM sucks?
by nicetryguy 6y ago
...So the Dalvik VM sucks?
- pjmlp 6y agoYes it sucks, that is why it was replaced by ART on Android 5.0.
- nicetryguy 6y agoAh, i haven't kept up. Anyway, a right bit shift should absolutely be quicker than floating point or even integer division. If it isn't, that is an implementation problem.
- pjmlp 6y agoART as of Android 10, combines an hand written interpreter in Assembly, a JIT compiler that generates PGO data as well, and an AOT PGO based optimizing compiler capable of doing bounds check elision, de-virtualization, auto-vectorization, escape analysis and a couple of other traditional optimizations. The PGO metadata files also get shared across devices via the Play Store as means to steer the AOT compiler into the optimal level of optimization across all users of the application. I assume that at the current level of ongoing ART optimizations, the team would consider that a compiler bug.
- nicetryguy 6y agoAwesome info! Thanks! What would you recommend for an IDE? I used Eclipse some years ago. Is that still common? I may want to experiment with some Android flavored Java again.
- pjmlp 6y agoAndroid Studio is the official IDE, it is a merge of InteliJ with Clion and Google specific plugins.