• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best way to pass large objects between tasks?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to pass large objects between tasks?


  • Subject: Re: Best way to pass large objects between tasks?
  • From: Marcel Weiher <email@hidden>
  • Date: Wed, 15 Apr 2009 17:10:32 -0700


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


  • Follow-Ups:
    • Re: Best way to pass large objects between tasks?
      • From: Oleg Krupnov <email@hidden>
References: 
 >Best way to pass large objects between tasks? (From: Oleg Krupnov <email@hidden>)
 >Re: Best way to pass large objects between tasks? (From: Graham Cox <email@hidden>)
 >Re: Best way to pass large objects between tasks? (From: Oleg Krupnov <email@hidden>)

  • Prev by Date: Re: The efficiency of swapping endianness on an iPhone?
  • Next by Date: -[NSView lockFocus] assertion failure
  • Previous by thread: Re: Best way to pass large objects between tasks?
  • Next by thread: Re: Best way to pass large objects between tasks?
  • Index(es):
    • Date
    • Thread