[android-developers] Re: Android native and Dalvik performance compare

2009-02-25 Thread lianwei
No, it's just a code segment. If you de-compile the binary you will find that it's a real loops, not being eliminated . And in fact, the 100 will also be a variable. On Feb 25, 2:19 am, Daniel Berlin daniel.ber...@gmail.com wrote: This test is worse than worthless, since the loop will be

[android-developers] Re: Android native and Dalvik performance compare

2009-02-24 Thread Daniel Berlin
This test is worse than worthless, since the loop will be entirely eliminated by any sane C compiler, since you don't actually use the variable 's' in a way that side-effects. dexopt doesn't eliminate empty loops for various reasons. On Feb 24, 10:59 am, lianwei lianwei.w...@gmail.com wrote: