• 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: I don't understand why this is leaking...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I don't understand why this is leaking...


  • Subject: Re: I don't understand why this is leaking...
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Wed, 13 Aug 2008 04:37:32 +0700


On 13 Aug 2008, at 00:05, Jason Coco wrote:



On Aug 12, 2008, at 12:50 , Klaus Backert wrote:

About $Null:

It it were a reserved word, it would be documented so.


The "Archives and Serializations Programming Guide for Cocoa" says:

Keyed Archives
...
Naming Values
...
You should avoid using “$” as a prefix for your keys. The keyed archiver and unarchiver use keys prefixed with “$” for internal values. Although they test for and mangle user-defined keys that have a “$” prefix, this overhead slows down archiving performance.
...

In this case, however, it's the actual value being encoded... not the key name. Also, if you read it, it suggests that you shouldn't use it for performance reasons. It specifically states that it is supposed to properly mangle the $ in a key name (causing the performance loss)...

Also: this "testing for and mangling" overhead, which might "slow down archiving performance" consists of:
in: if user_key starts with '@' then prepend another '@'
out: if key starts with '@@' remove one '@'.
Would be interesting to know, how much this really slows down the performance.


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: 
 >Re: I don't understand why this is leaking... (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: I don't understand why this is leaking... (From: Graham Cox <email@hidden>)
 >Re: I don't understand why this is leaking... (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: I don't understand why this is leaking... (From: Graham Cox <email@hidden>)
 >Re: I don't understand why this is leaking... (From: "Gerriet M. Denkmann" <email@hidden>)
 >I don't understand why this is leaking... (From: Klaus Backert <email@hidden>)
 >Re: I don't understand why this is leaking... (From: Jason Coco <email@hidden>)

  • Prev by Date: Re: What's the use of the Z_UUID in the Z_METADATA table?
  • Next by Date: Re: Cocoa-dev Digest, Vol 5, Issue 1446
  • Previous by thread: I don't understand why this is leaking...
  • Next by thread: Re: I don't understand why this is leaking...
  • Index(es):
    • Date
    • Thread