On 17/09/2013, at 9:47 AM, Marcel Weiher <marcel.wei...@gmail.com> wrote:

> Wow, that’s a pretty big file!  NSKeyedArchiver has been heavily optimized 
> (relatively speaking) for the reading case, so 10-15 seconds sounds like a 
> lot, my 1M object graph “only" takes around 2-3 seconds.

This is very much a worst-case. The file contains a 400MB embedded TIFF image, 
which is the bottleneck. The archive probably only has a thousand objects in it.

> Do you know how long it takes to save?  Around 30-60 seconds? 

No, it's much less.

Of course, the progress indicator will zip along until it hits the image, pause 
a long time, then finish. That's not ideal, but the point is to reassure the 
user that their hitting of 'Open' in the Open panel did actually make something 
happen. I realise that now I have a Macbook Pro with SSD drive just how much I 
was subconsciously relying on the hard disk whirring up to know that the file 
was being read, and with background loading of documents it's even less obvious 
that a file is being opened because the app remains responsive, just as if the 
dialog had been cancelled.

Really, opening in the background is a bit pointless, as usually files open 
near-instantaneously so blocking the main thread for that time is not an issue, 
and the user's workflow suggests that the next thing they want to do is work on 
the file they've just selected in the Open panel, not get on with something 
else while it loads. So showing a progress for a lengthy open delay is likely 
to fit with the user's workflow. Saving in the background is much more 
beneficial, since the main thread doesn't block significantly for autosave, 
etc. But you can't opt into one without the other.

--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

Reply via email to