On Apr 7, 7:50 am, Anil <[EMAIL PROTECTED]> wrote:
> The same list loaded almost instantaneously - too fast to measure by
> hand, but less than half a second - using a Java Swing application.
> The parsing and loading code was identical - except that in Android
> one has to use the SAXParserFactory class, and in Swing, I could use
> XMLReaderFactory directly.

You really need to understand: what you are running when your app is
in the emulator, is an EMULATED versions of the ENTIRE operating
system.  That is, the only native x86 code that is being run is an ARM
CPU emulator and the UI shell of the emulator.  The ARM emulator is,
in turn, running a complete ARM-based system, from the Linux kernel,
up through libc, to the Dalkvik interpreter itself.  Yes, your Java
code is being emulated twice: first by the ARM emulator running the
Dalvik code, then the Dalkvik code running your and the system's Java
code.  And that ARM emulator is emulating a big chunk of the ARM
hardware, including things like the MMU.

Posting things about how the Android emulator is running slower than
some native Java code is simply not useful to anyone, because you are
comparing apples to oranges.  They are not the same thing at all.

As Romain says, we can assure you that on actual hardware the system
is running with reasonable performance.... keeping in mind that the
performance is not going to be anything like running Java on your
desktop, because the hardware is significantly less powerful.

So the basic question is: is your application's UI running more slowly
than other parts of the UI that are included with android?  If so,
then like I said there is some issue in your application or how it is
using the platform, which can probably be significantly narrowed down
if not discovered through the profiler.  If you are just generally
complaining about the overall performance, then a solution you might
want to consider is to get a faster desktop machine.  (Though there
have been some known performance issues when running the emulator on
at least certain windows machines.  I'm not sure what the state of
those issues is.)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to