Re: NSKeyedArchiver finishEncoding takes forever
Re: NSKeyedArchiver finishEncoding takes forever
- Subject: Re: NSKeyedArchiver finishEncoding takes forever
- From: Markus Spoettl <email@hidden>
- Date: Wed, 18 Jun 2008 12:10:01 -0700
On Jun 18, 2008, at 11:25 AM, Kyle Sluder wrote:
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.
If there is no other solution to it, I may consider this. But I have a
feeling there's something wrong with the doubles I encode which causes
the whole mess. Anyway, thanks for the suggestion.
Also, what OS and SDK are you using?
Sorry I forgot. I'm on 10.5.3 using Xcode 3.0 and targeting 10.5+.
Regards
Markus
--
__________________________________________
Markus Spoettl
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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