Sorry if this sounds harsh, but if someone else is doing it in an Obj-C app, and your MT app is having performance problems, it's not MT until you have a 1:1 code port of their code. 99% of the time, it'll be your code.
(again, sorry if this sounds harsh against you - it's true for everyone, I think - including me!!) On Wed, Aug 10, 2011 at 08:26, Jon Hopkins <[email protected]> wrote: > I did figure a solution, my event handler to update views was on the > deceleration end of the scroll. It never gets called on the first event of a > double-scroll, because it doesn’t decelerate. My solution is to look at the > difference, and when bigger than 1 page, to manually add the missing view, > > > > Thanks, > > Jon > > > > Von: Jeff Stedfast [mailto:[email protected]] > Gesendet: 09 August 2011 20:32 > An: Jon Hopkins > Cc: [email protected] > Betreff: Re: [MonoTouch] Performance cost of MonoTouch vs. Objective-C > > > > My *guess* would be that perhaps the GC thread is getting in the way here, > trying hard to clean up all the removed objects. > > > > A common trick to work around this problem is to try and re-use your heavier > objects used in this scenario to try and limit the amount of work the GC has > to do. How hard this is to do depends on how your code works/was designed > etc. > > > > It's possible that the SGen GC would be more performant in this case > (MonoTouch still uses the Boehm GC), but until we get SGen ported to > MonoTouch and work out any kinks it may have we'll never know :-( > > > > I hope you figure out a solution, > > > > Jeff > > On Tue, Aug 9, 2011 at 3:03 AM, Jon Hopkins <[email protected]> > wrote: > > My Magazine App runs fine in the simulator, and ok in normal use on the > Ipad, but when you scroll too > > Fast, it leaves blank pages which all my optimisations cannot seem to fix. > The code seems to work fine, > > But just not performant. It uses dynamic adding and removing of views on a > UIScrollView. > > > > Jon > > > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch > > -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
