4 ms·
The main reason for the speed increase is that Froyo introduces a JIT compiler. This means that the compiler will be able to examine the running code and make o
by nex3 16y ago
The main reason for the speed increase is that Froyo introduces a JIT compiler. This means that the compiler will be able to examine the running code and make optimizations based on its behavior that can outperform statically-compiled native code. Especially for long-running processes (such as apps), this could make Android's Java code run faster than the iPhone's Objective-C.
- alain94040 16y agoI admit that I stopped following compiler research a while back, but I doubt that a JIT compiler would use run-time behavior to beat a static compiler. Do you have any reference or link to such optimization?
- wmf 16y agoHere are some optimizations that use runtime information: http://portal.acm.org/citation.cfm?id=346037 http://portal.acm.org/citation.cfm?id=346037 http://portal.acm.org/citation.cfm?id=353191 http://portal.acm.org/citation.cfm?id=353191