Skip navigation.
 
mlRe: Storm in a water glass? (Was: Table View Blues (summary))
FROM : Marco Scheurer
DATE : Thu Nov 21 22:27:07 2002

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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlStorm in a water glass? (Was: Table View Blues (summary)) rixstep000 Nov 21, 21:28
mlRe: Storm in a water glass? (Was: Table View Blues (summary)) Scott Anguish Nov 21, 21:42
mlRe: Storm in a water glass? (Was: Table View Blues (summary)) Scott Anguish Nov 21, 21:45
mlRe: Storm in a water glass? (Was: Table View Blues (summary)) Rixster @ Rixstep Nov 21, 22:00
mlRe: Storm in a water glass? (Was: Table View Blues (summary)) Scott Anguish Nov 21, 22:10
mlRe: Storm in a water glass? (Was: Table View Blues (summary)) Rixster @ Rixstep Nov 21, 22:22
mlRe: Storm in a water glass? (Was: Table View Blues (summary)) Marco Scheurer Nov 21, 22:27
mlRe: Storm in a water glass? (Was: Table View Blues (summary)) Jonathan Hendry Nov 21, 22:31
mlRe: Storm in a water glass? (Was: Table View Blues (summary)) Scott Anguish Nov 22, 02:55
mlRe: Storm in a water glass? (Was: Table View Blues (summary)) Nat! Nov 23, 00:19