• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
performance of adding subviews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: performance of adding subviews
      • From: Steven Kramer <email@hidden>
  • Prev by Date: Re: Copy and release
  • Next by Date: Re: Bug in NSArrayController? (immutable instead of mutable dictionaries)
  • Previous by thread: Re: Bug in NSArrayController? (immutable instead of mutable dictionaries)
  • Next by thread: Re: performance of adding subviews
  • Index(es):
    • Date
    • Thread