Obj-C GC Picking Up in More Ways Than One

“firestorm”, commenting on a piece on Objective-C GC by Scott Stevenson:

Garbage collection in Mac OS X 10.5 can be faster than retain/release on multi-core systems. retain/release requires the code to obtain a lock, which is expensive. On multicore systems, libauto (the GC) can examine the heap before it pauses the thread so it knows what it’s doing going in. And, if there are UI events in the queue, it’ll abort it’s job and wait for the next idle time. It’s probably the most advanced GC on the market.

If it was October 26th today, I could tell you how libauto is also interesting on account on being driven by requests from someplace lower (like Foundation) and how that means that it only collects when you or Cocoa ask it to, and how it only collects stuff on the main thread. But it’s not, so I won’t.

Comments [+]

  1. Um, pretty please?

    By orestis · 2007.10.22 06:42

Leave a comment

Your e-mail address is never shown. If you type a line break in the comment, it will show up as a line break (naturally). The following HTML is allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required)


Please note: Your comment will not show up at once. Unless you're spamming or being abusive, you have nothing to worry about. (Read the full policy.)