Re: [Simple-support] Android performance - strange profiling
Brought to you by:
niallg
|
From: Dawid W. <daw...@gm...> - 2012-01-10 16:11:48
|
This is not only the case with Android I think. We compile simple-xml to .NET via IKVM and the startup time lag is significant too. I think it's the sheer amount of classes involved is the problem (initial JITting). I would appreciate if you could share your findings and I would be interested in helping to improve it if possible. Dawid On Tue, Jan 10, 2012 at 2:00 PM, Robert Massaioli <rob...@gm...> wrote: > 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 >> > > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > Simple-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simple-support > |