• 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
Re: Storm in a water glass? (Was: Table View Blues (summary))
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storm in a water glass? (Was: Table View Blues (summary))


  • Subject: Re: Storm in a water glass? (Was: Table View Blues (summary))
  • From: Marco Scheurer <email@hidden>
  • Date: Thu, 21 Nov 2002 22:27:07 +0100

On Thursday, November 21, 2002, at 10:00 PM, Rixster @ Rixstep wrote:

removeAllObjects??!??

How? Why? When? Where?
You don't know the user is deleting them all.

Do a little bit of profiling (use Sampler), and you'll probably notice that most of the time is spent in the O(n x m) removeObjectsInArray, and not in dealloc or updateUI. It should be clear that this has nothing to do with "benchmarks on the NSTableView data source deallocation thing".

In that respect, contrary to what you think, 40,000 records with 7 fields is very much different from 10,000 records with 26 fields.

If you think that this kind of operations is needed, choose a container which is better suited to find elements, like NSSet.

Marco Scheurer
Sen:te, Lausanne, Switzerland http://www.sente.ch
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Storm in a water glass? (Was: Table View Blues (summary)) (From: "Rixster @ Rixstep" <email@hidden>)

  • Prev by Date: Re: Storm in a water glass? (Was: Table View Blues (summary))
  • Next by Date: Re: Storm in a water glass? (Was: Table View Blues (summary))
  • Previous by thread: Re: Storm in a water glass? (Was: Table View Blues (summary))
  • Next by thread: Re: Storm in a water glass? (Was: Table View Blues (summary))
  • Index(es):
    • Date
    • Thread