Re: [Simple-support] Android performance - strange profiling
Brought to you by:
niallg
|
From: Robert M. <rob...@gm...> - 2012-01-10 13:00:44
|
I just started doing timing tests on my XML and I discovered that on an ASUS Transformer (Original) that a 31 line XML file took 2 seconds to load and a 219 line xml file took around 2.8 seconds to load. Those times are quite large, it is obviously preferably if we could cut them by about a fifth. I suspect that the massive amounts of branching contribute to the delay somewhat but more investigation needs to be done. Niall probably also knows what the cause of the problems are. I will be looking into it soon. I my goal would be to get the entire process down to 0.5 seconds on an Android device for any file that has 1000 lines or less. Maybe the reflection code also causes quite a bit of a slowdown. We shall see. I wonder how much of the reflection calls get cached as the parsing goes along. Robert On Tue, Jan 10, 2012 at 5:00 AM, Rangel Reale <ran...@gm...> wrote: > Hello, > > I am having performance issues in Android parsing a very large XML file. > > Profiling trying to find where the bottleneck is, if I undestood > correctly, the application is 44% of the time in the function > "KXmlParser.getLineNumber", called from PullReader$Start.<init>, but > looking at its source code it seems to only read an instance variable an > nothing more. > > Can someone shed a light on this? > > I don't know it posting images is allowed here, so I uplodaded to an image > sharing site: > > http://imgur.com/C5ocm > > Thanks, > Rangel > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Simple-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simple-support > > |