Attaching the debugger turns off the JIT, and requires that Dalvik code running in that process do some work to keep in sync with the debugger. When you do a Binder call, you are having code execute in another process, which is not running under the debugger.
On Thu, Jun 23, 2011 at 9:37 AM, Kostya Vasilyev <[email protected]> wrote: > Yeah, pretty much any application-side code takes a hit under the debugger, > not just JSON parsing. > > Android API methods that are implemented as Binder (RPC) calls don't seem > to take a hit, but any Java code within the application does, and that > includes the framework as well. > > Thanks for sharing the information, though. > > You might want to test on a real device to get more real-world performance > numbers. The emulator (even 1.6 on a fast machine) is slower than a > mid-grade phone, and each version of Android gets progressively slower when > emulated. > > -- Kostya > > 2011/6/23 idleSun <[email protected]> > >> It turns out that it is slow when I run it in debug mode. So it is not >> a big deal. However, if you have a heavy jackson use and want to debug >> your code then you got to be really patient. >> >> >> On Jun 22, 10:59 am, idleSun <[email protected]> wrote: >> > I am using pretty complicated JSON data with Object Mapping to Java >> > Classes that are of course also pretty complicated (inheritance depth >> > -- > 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] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

