• 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: NSKeyedArchiver performance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSKeyedArchiver performance


  • Subject: Re: NSKeyedArchiver performance
  • From: Wade Tregaskis <email@hidden>
  • Date: Fri, 2 Jan 2004 16:57:54 +1100

I was surprised by the time. A recent Java application I am working on wrote on the order of 200MB of serialized objects (25K in this case and more complex) in < 100 sec. I meant to ask if this timing was what others were seeing or if they had experienced large archives with more reasonable times. I can not ask a user to wait an hour for their data to be saved, when the I/O would be a small fraction of that time. If there are any suggestions on how to verify that I did not do something wacky I would welcome those as well. If others are seeing reasonable times I would presume it is in my code somewhere, but since the time is being spent in Cocoa code "flattening" the plist it seemed reasonable to ask the list for past experience.

I believe the majority of the time is spent checking for duplicate encodings, as encountered due to circular references. There is some way of turning this off, if you are sure you will never have such circles. Performance will then be very good, on the order of seconds as you expect, rather than hours. :)

Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Drawing API
  • Next by Date: How can we get notified when the user presses shift or apple keys etc.
  • Previous by thread: Re: Drawing API
  • Next by thread: How can we get notified when the user presses shift or apple keys etc.
  • Index(es):
    • Date
    • Thread