• 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: Performance with keyed archives
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Performance with keyed archives


  • Subject: Re: Performance with keyed archives
  • From: Will Mason <email@hidden>
  • Date: Thu, 25 Nov 2004 00:35:01 -0800 (PST)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys

>      if you have an array of thousands of objects, you'd not store
> each
> of those in a separate key, you'd archive the array.. each of those
> individual objects would then archive it's contents, and eventually
> when you have your custom objects, those would be archived using the
> keyed encoder methods.

I'm archiving everything using non-keyed encoder methods. I don't
understand why the non-keyed methods have such enormous performance
differences when using NSArchiver vs NSKeyedArchvier. I'm not keeping
track of separate keys for each stored object. I don't need to, and
that's why I'm using non-keyed methods for object storage.

>
>      if you did store them using keys and tried to access them in
> some
> random order, it'd be very slow.
>
>      another option is that you may be storing the keyed archives in
> the
> XML format vs the binary format.  that is likely much slower.
>
>      without seeing what you're doing exactly those are my first
> stabs
> at the situation.

I'm definitely not storing things in XML format. Everything is an a
binary format. Plus, I'm not storing or retreiving anything in a random
order. Every object is stored in a certain order and retrieved in the
same order, so I honestly think that NSKeyedArchiver just has
performance issues. It's too bad. I wish that the documentation would
tell us that NSKeyedArchiver performs really badly.

Thanks very much for you input,
Will

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Performance with keyed archives
      • From: Shawn Erickson <email@hidden>
References: 
 >Re: Performance with keyed archives (From: Scott Anguish <email@hidden>)

  • Prev by Date: Excelsior for XML marshling and demarshling
  • Next by Date: Re: Unicode case conversion
  • Previous by thread: Re: Performance with keyed archives
  • Next by thread: Re: Performance with keyed archives
  • Index(es):
    • Date
    • Thread