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

Re: archiving report


  • Subject: Re: archiving report
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Thu, 28 Feb 2013 17:16:55 +0700

On 28 Feb 2013, at 14:41, Kyle Sluder <email@hidden> wrote:
>
> All you have shown is that NSKeyedArchiver is not optimized for your contrived use case.

Whenever some object is used (referenced from some other object) n times there are n-1 unnecessary object references created.
This might happen in real world examples. The (rather contrived) example of an archive containing a million identical string objects was just created to emphasise the problem.

For equal but distinct string objects (i.e. a ≠ b and [ a isEqualToString: b ] = YES) NSKeyedArchiver will store both a and b. As this is probably not occurring very often (and checking all strings can become quite slow) this is ok.

Kind regards,

Gerriet.


_______________________________________________

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


References: 
 >archiving report (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: archiving report (From: Gwynne Raskind <email@hidden>)
 >Re: archiving report (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: archiving report (From: Tony Parker <email@hidden>)
 >Re: archiving report (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: archiving report (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Documents not opening from Finder
  • Next by Date: positional information about terms in a search kit index
  • Previous by thread: Re: archiving report
  • Next by thread: Re: archiving report
  • Index(es):
    • Date
    • Thread