[mono-android] slow loading of FindViewByID

John Murray john at murray.gb.com
Tue Mar 29 10:28:15 EDT 2011


Thanks for the heads up JP
I'll try setting a timer 
It's now running at 8-9secs which is irritating 
I admit my eclipse trial was rather haphazard and probably not comparable 
I've only the debugger steps to go on in identifying the block of
FindViewByID - takes forever 

Any suggestions for ameliorating things if I have to accept it will take 8
secs or would you expect that kind of delay when there are a6 resources on
the view?

Best regards
John Murray

-----Original Message-----
From: Jonathan Pryor [mailto:jpryor at novell.com] 
Sent: 29 March 2011 14:52
To: john at murray.gb.com; monodroid at lists.ximian.com
Subject: Re: [mono-android] slow loading of FindViewByID

On Mar 29, 2011, at 6:43 AM, John Murray wrote:
>  I have tried running the view under Eclipse (though not the full app with
tabs) and load times are much faster

I find this puzzling; the JNI overhead shouldn't be that noticeable.

> The delay is almost certainly around the
> 
> FindViewById<AutoCompleteTextView>(Resource.Id.indestfield);

Conjecture? :-)

You might consider adding some timing information around the call to see if
that's actually the problem or if it's actually somewhere else.

You might also consider filing a bug with a test case so we can look at this
performance issue.

> 1)  Is there an issue with FindViewByID under Mono

None that has previously been reported.

 - Jon




More information about the Monodroid mailing list