On Jan 7, 9:06 am, Biosopher <biosop...@gmail.com> wrote: > Just following up to my initial post, I have implemented the above > look in native code using Android's SDK. The native code performs in > a few milliseconds as hoped. This goes to confirm that for compute > intensive tasks, Dalvik can be hundreds of times slower than native.
As I noted over on android-ndk, function inlining and strength- reduction can turn "let's call an empty function 2 million times" into "let's set an integer to 2 million... oh, we don't use the result, so let's do nothing at all". "Hundreds of times slower" is easily achievable with specific constructs.
-- 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