3 ms·
I bet Android has a lot of room to improve not just by improving garbage collection but by decreasing garbage creation. The compiler can do a lot of optimizati
by dkarl 16y ago
I bet Android has a lot of room to improve not just by improving garbage collection but by decreasing garbage creation. The compiler can do a lot of optimizations to reuse objects instead of allocating new ones. I don't know what the state of the Android JIT is, but Sun's JIT took many years to incorporate some basic-seeming optimizations.
One thing that could be done in the meantime is to rewrite performance-sensitive Android UI code in a way that eliminates object allocation. In Java this would result in horrifying code, but it might be worth it, and they wouldn't necessarily have to use Java.
- blasdel 16y agoAndroid's Dalvik VM has only had a JIT for 4 months (shipped in 2.2) Hilariously enough, they started using V8 in 2.0 a year ago — so in 2.0 and 2.1, Javascript is JIT-ed but Java isn't!