On Fri, Apr 11, 2008 at 12:30 AM, qvark <[EMAIL PROTECTED]> wrote: > > Hello all, > > I'm having serious performance problems with my application. I need to > apply several image processing algorithms and they are taking too > long. The same algorithms take less than 20secs in a "normal" Sun JVM > (Java 1.6.0) but more than 7 minutes when executed inside the emulator > (in the same machine)! And I think I'm not the only one facing this > kind of problems (you can see the details here: > > http://groups.google.com/group/android-developers/browse_thread/thread/2ba60cffa432e50e/0324c6e03be32149 > ) > > In a different post (http://groups.google.com/group/android-developers/ > browse_frm/thread/c4a8b4d97f408b17/6574e60b4add1fc4<http://groups.google.com/group/android-developers/browse_frm/thread/c4a8b4d97f408b17/6574e60b4add1fc4>) > Dan Morrill says > that a JIT optimization is on the Dalvik roadmap, but nobody seems to > know when. > > I have applied all the Android performance hints, but I don't think I > will be able to reduce the time much more. The only real solution > seems to use JNI for little application fragments that consume most of > the time (convolution operations over the images), but it seems a bit > "hacky". > > Do you think I should keep the implementation in Java because the ADC > judges will be "lenient" with these apps knowing the performance > problems with the emulator and that they will probably disappear in > real devices with a JIT Dalvik machine?
If you want to you can clearly state the limitations of your application, its causes and expected improvements in the documentation so that the judges are aware of it. > > > Do you think I should try via JNI and submit it even if it seems > "unsupported"? Has anybody submitted an application that uses JNI? > JNI is not officially supported with Android SDK, but you may want to refer to this thread below about using JNI: http://groups.google.com/group/android-internals/browse_thread/thread/bd3d0ce02c539fa1/65d8da86180d75f7?#65d8da86180d75f7 > > Thanks in advance, > > Jose Luis. > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Challenge" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-challenge?hl=en -~----------~----~----~----~------~----~------~--~---
