One big reason is that a lot of time is spent in system libraries, which are written in C/C++. I believe in the original talk on Dalvik, it was indicated that 70% of the time was spent in non-interpreted code. You also have to remember that Dalvik has a JIT compiler and now an LLVM based runtime (still in development, it seems), so the impact from Java is less than you might think.
Kris On Mon, Mar 31, 2014 at 3:27 PM, NewToAndroid <rahulra...@gmail.com> wrote: > Thats good to know. My intension behind asking this question was, will the > apps be faster if written in C/C++ ? > But looking at the intro of NDK, they say it won't give significant > performance improvement if apps developed in c/c++. > Is it because of the layers of basic Android architechture? Or what? > Any ideas please. > > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to android-developers+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.