Hi,
I am using sortArrayUsingFunction: context: to sort a fairly large
table (100k recs). Judging from the readout of comparisons being made
the sort appears to be about 80% done when everything comes to a
halt. No message, no nothing. It just stops.
The exact same function works if the table is about half that size
(about 55k). I tried throwing in a couple of autorelease pools to
minimize any buildup of temporary objects, and that got me a little
further, but still not all the way. Since I may eventually need to
deal with a million records, I'm suspecting this is not a viable
approach.
Unfortunately, the table is not KVO-compliant so I cannot use
NSSortDescriptor. And I need to pass the primary and secondary sort
fields at runtime, so I cannot use sortUsingSelector since it takes
no parameters.
I'd really appreciate suggestions on how to 1) get through this file
using the function I set up and 2) ideas on alternative approaches
that will be able to handle much larger files for the future.
Thanks!
Daniel
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]