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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to