Re: Progress for archiving/dearchiving
Re: Progress for archiving/dearchiving
- Subject: Re: Progress for archiving/dearchiving
- From: Graham Cox <email@hidden>
- Date: Tue, 17 Sep 2013 10:03:13 +0200
On 17/09/2013, at 9:47 AM, Marcel Weiher <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden