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.
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 mails | Author | Date |
|---|---|---|
| rixstep000 | Nov 21, 21:28 | |
| Scott Anguish | Nov 21, 21:42 | |
| Scott Anguish | Nov 21, 21:45 | |
| Rixster @ Rixstep | Nov 21, 22:00 | |
| Scott Anguish | Nov 21, 22:10 | |
| Rixster @ Rixstep | Nov 21, 22:22 | |
| Marco Scheurer | Nov 21, 22:27 | |
| Jonathan Hendry | Nov 21, 22:31 | |
| Scott Anguish | Nov 22, 02:55 | |
| Nat! | Nov 23, 00:19 |






Cocoa mail archive

