[android-developers] Re: super slow code

2011-10-05 Thread Doug
On Oct 4, 9:42 am, bob wrote: > Does anyone know why this code is ridiculously slow and/or how to make > it faster? What do you mean by "ridiculously slow"? Have you considered using DataInputStream to read binary data instead of parsing string-tokenized data? Doug -- You received this messag

[android-developers] Re: super slow code

2011-10-04 Thread Zsolt Vasvari
Easiest: Just put a bunch of logging in and print out System.currentMillis() On Oct 5, 4:27 am, bob wrote: > What tool do people typically use to profile on Android? > > Thanks. > > On Oct 4, 11:56 am, Kostya Vasilyev wrote: > > > > > First, profile and find out which is the slow part (reading,

Re: [android-developers] Re: super slow code

2011-10-04 Thread Mark Murphy
Traceview: http://developer.android.com/guide/developing/debugging/debugging-tracing.html On Tue, Oct 4, 2011 at 4:27 PM, bob wrote: > What tool do people typically use to profile on Android? > > Thanks. > > > > On Oct 4, 11:56 am, Kostya Vasilyev wrote: >> First, profile and find out which is

[android-developers] Re: super slow code

2011-10-04 Thread bob
What tool do people typically use to profile on Android? Thanks. On Oct 4, 11:56 am, Kostya Vasilyev wrote: > First, profile and find out which is the slow part (reading, tokenizing, > string-to-float conversion). > > Second, conversion of string to float is ridiculously slow in some Java > li