performance of adding subviews
performance of adding subviews
- Subject: performance of adding subviews
- From: Bertrand Landry-Hétu <email@hidden>
- Date: Thu, 21 Oct 2004 14:59:32 -0700
I have a complex "list" like view that has potentially a lot of
subviews and I'm having performance problems adding and removing views
as it scales up. Each entry in my list has close to 10 subviews, which
means that when I add a 100 entries it is actually adding 1000 views.
So I used Shark to find out why it is so slow and was surprised by the
results. Well most of the time is spent in addSubView which is not a
big surprise but where it spent the time in addSubView was surprising.
There is a call to _verifyDefaultButtonCell that is recursive and that
takes most of the time. So I was wondering if anybody new the nature of
that call (other that it verifies the default button cell) and I could
avoid addSubView calling it or if it only a matter of having a default
button low enough in the responder chain.
Thank you.
Creo
Bertrand Landry-Hétu | Software Developer | tel: +1 604.451.2700
x5967 |
email@hidden | www.creo.com
IMAGINE CREATE BELIEVE(tm)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden