4 ms·
Tuned how? By being slow as f..k? That actually makes it much worse for small batteries.
by kryps 12y ago
Tuned how? By being slow as f..k? That actually makes it much worse for small batteries.
- Zigurd 12y agoDalvik claims to be twice as fast interpreting DEX compared to Java bytecode interpretation. The Dalvik JIT compiler focuses on critical sections of code. There's a reason you don't see Hotspot on battery powered devices. Large amounts of the Android framework, especially the foundations of drawing and the View hierarchy, are in C or C++. Compiling an interactive app to native code makes much less difference in performance than a synthetic benchmark of DEX interpretation might lead one to think.
- pohl 12y agoThe Dalvik JIT compiler focuses on critical sections of code. There's a reason you don't see Hotspot on battery powered devices. Hotspot get its name from the term of art for a critical section of code, though. That's not something that makes them different from each other; it's what they have in common. What separates them must be that only one of them was designed with a power budget in mind.
- Zigurd 12y agoOnly in a very general sense. Dalvik's JIT really tries to minimize JIT compilation. Modern Java JIT compilers are oriented around the goal of extracting maximum performance from compiled code. That's priority #1, and there is no #2.