Re: Storm in a water glass? (Was: Table View Blues (summary))
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.