Re: performance of adding subviews
Re: performance of adding subviews
- Subject: Re: performance of adding subviews
- From: Steven Kramer <email@hidden>
- Date: Sat, 23 Oct 2004 15:31:06 +0200
Op 21-okt-04 om 23:59 heeft Bertrand Landry-Hétu het volgende
geschreven:
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.
You could try subclassing and overriding _verifyDefaultButtonCell to
basically do nothing. It doesn't seem too important in your case. But
do mind the usual warnings about undocumented features...
Steven
_______________________________________________
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