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: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 16 Apr 2009 10:57:55 +0200
I don't know about other OS X technologies, but IIRC CFMessagePort is
optimized to exchange large amount of data between processes.
http://developer.apple.com/documentation/CoreFoundation/Reference/CFMessagePortRef/Reference/reference.html
Le 16 avr. 09 à 10:44, Oleg Krupnov a écrit :
Thanks, Marcel and Graham. It answers my question. I will now look for
ways to optimize data transmission between processes, and I think I
have already found one.
On Thu, Apr 16, 2009 at 3:10 AM, Marcel Weiher <email@hidden
> wrote:
On Apr 12, 2009, at 23:26 , Oleg Krupnov wrote:
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.
Yes, NSKeyedArchiver is not really suitable for large data-sets.
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?
Well, the two questions are really orthogonal: both DO and pipes
will
require serialization if you actually want to move the object across.
By "large" I mean about 10-100 MB. I don't think I am going to hit
the
boundary of VM anyway.
Can you tell us a bit more about the object in question? Is it
really one
object with 10-100MB of associated data? What's the data and how
is it
encoded? Or is it an object graph with lots of objects involved?
Why do
you want to move the object/data across to another task?
Marcel
_______________________________________________
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
_______________________________________________
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