Re: Speed Traps
Re: Speed Traps
- Subject: Re: Speed Traps
- From: Tom Sutcliffe <email@hidden>
- Date: Mon, 19 May 2003 21:29:06 +0100
It is "very different" in that the difference is ONLY not all that
noticeable if you use NSObject's brain-dead refcount implementation,
which is in itself several times slower than an inline reference count
(almost 10 times for an optimized inline refcount). The reason it is
so slow is that every refcount operation requires a hash lookup and
possibly allocation/deallocation of the slot for the extra-refcount
inserted into the table. Nobody in their right mind uses that,
certainly Apple doesn't. All Apple-provided classes use some sort of
inline refcount.
I'm intrigued as to why NSObject uses hashes at all in its reference
counting, especially if all the classes Apple have produced don't.
Could you clarify this?
Cheers,
Tom
_______________________________________________
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.