Re: Best way to pass large objects between tasks?
Re: Best way to pass large objects between tasks?
- Subject: Re: Best way to pass large objects between tasks?
- From: Yoshiaki Katayanagi <email@hidden>
- Date: Mon, 13 Apr 2009 16:49:05 +0900
Oleg Krupnov wrotes
>I haven't tried either of the methods I mentioned so far (because I'm
>lazy, sorry:), but what I have tried is I created NSData from the
>large object by using NSKeyedArchiver. It has taken forever, so that I
>had to force-quit the process. That's why I am asking if the same
>thing is going to happen with piples and DO? Or maybe I'm doing
>something wrong?
If your data has many double values and use encodeDouble:forKey:
use encodeBytes:length:forKey: instead. encodeDouble:forKey: is very
very slow. In my case, with encodeDouble:forKey: it takes 4 hour and
30 minutes, but with encodeBytes:length:forKey: it takes only 21 seconds.
I never tested for float values but maybe the same.
Yoshiaki Katayanagi
http://www.jizoh.jp/english.html
_______________________________________________
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