Correlation is not causation. Yes android is slower than it could be.
But jazelle isn't the only reason. I wouldn't be surprised if the j2me
variant isn't even using jazelle as jits tend to be faster in a lot of
applications.   A "simple" jit would probably give a 5-10x+ speed up
of the java (not necessary the app since a lot of time is spent in
native code) and a really good one gets within 10% (and faster in some
cases) than native C code, a generational garbage collector would make
allocation fast and reduce some of the pauses, and so.  There are
costs in memory usage and complexity for both of them.

Sun has been working on their VM for over 15 years. Google is more
like 2 or 3. I would expect as the platforms get more ram and as
Google spends more time that we will see some pretty decent
performance improvements. Personally I would have preferred that
Google use java byte codes instead of come up with their own scheme
since there are a lot of languages out there that compile to byte
codes but they had their reasons but there is no reason why in 5 years
dalvik code isn't as fast as any other VM out there.


On Apr 1, 7:55 am, Ecthelion <ep...@joergjahnke.de> wrote:
> This I cannot confirm. The C64 emulator Mobile C64 runs with AFAIK
> 10-15% of the original C64 speed on a G1 with its 528 MHz CPU. On my
> Samsung SGH-i600, with a 624 MHz CPU, the J2ME variant ran at close to
> 100% of the original C64 speed. This is a factor of 6-10 faster
> although the device's CPU is only 20% faster. So the Jazelle
> advantages can be quite considerable, at least for some applications.
>
> On Mar 31, 9:36 pm, thesquib <thesq...@gmail.com> wrote:
>
> > Stoyan - the optimisation from the Jazelle is apparently not that good
> > anyway, partially because a software JVM performs all sorts of
> > optimisations on the fly.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to