Re: NSKeyedArchiver finishEncoding takes forever
Re: NSKeyedArchiver finishEncoding takes forever
- Subject: Re: NSKeyedArchiver finishEncoding takes forever
- From: "Kyle Sluder" <email@hidden>
- Date: Wed, 18 Jun 2008 14:25:12 -0400
Assuming you don't fix the issue:
On Wed, Jun 18, 2008 at 2:13 PM, Markus Spoettl
<email@hidden> wrote:
> 2) I also noticed that when I use the NSPropertyListXMLFormat_v1_0 instead
> of binary, the process speeds up considerably, taking just below 10 seconds.
> The problem with this is that the output file is huge (100 MB) which is too
> big for my purposes. Also, decoding the XML data is much slower than with
> binary data.
Maybe serialize it to an XML plist data object, and then gzip that on
a background thread? Won't help much with the decompression, I'm
afraid. Or, you could grap an XML plist blob and then, on a
background thread, reinstate that and write it out again as binary.
This will consume a LOT of memory. I have this vision that you need
to take a snapshot of the state of your object hierarchy at point X,
so my suggestions might not be that helpful. It all has to do with
what tradeoffs you're willing to make.
Also, what OS and SDK are you using?
--Kyle Sluder
_______________________________________________
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