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

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.

  • Follow-Ups:
    • Re: Speed Traps
      • From: Marcel Weiher <email@hidden>
    • Re: Speed Traps
      • From: publiclook <email@hidden>
References: 
 >Re: Speed Traps (From: Marcel Weiher <email@hidden>)

  • Prev by Date: Where do nib files get stored in bundles???
  • Next by Date: Re: Events between Objective C objects
  • Previous by thread: Re: Speed Traps
  • Next by thread: Re: Speed Traps
  • Index(es):
    • Date
    • Thread