On 29 Nov 2013, at 11:19 pm, Graham Cox <graham....@bigpond.com> wrote:
>> You also have another, damn-quick "hash key" that takes zero disk access to >> compute: -[NSData length]. > > Yep, that’s a great idea. OK, I’ve implemented this much as your suggestion, and I’m also saving the hash object along with the data so I can avoid recomputing it when the file is imported. The huge file I’m testing with now opens in 2/3rds of the time (2 seconds instead of 3). That’s now down from 11 minutes, so overall the optimisations are going quite well :) —Graham _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com