Sorting Time Question
Sorting Time Question
- Subject: Sorting Time Question
- From: Francisco Tolmasky <email@hidden>
- Date: Wed, 26 Mar 2003 19:30:59 -0800
Ok, if I have a self sorting array, when an object changes it must be
resorted. Should I just call sortUsingFunction: or whatever, or is it
worth it to implement a function that removes this item and reinserts
it itself, possibly using a binary search to find where it belongs.
So basicall, if this is the original:
1
2
3
and 2 is changed to 5, then should I resort, OR do this
remove 2, leaving:
1
3
insert 5:
1
3
5
Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
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.