Re: Garbage Collection woes...

2008-06-29 Thread j o a r
On Jun 27, 2008, at 12:31 PM, John Engelhart wrote: Lesson #1: If you have any interest in performance, you must avoid, at all costs, "writing" to a __strong pointer. That's almost like saying: "If you have any interest in performance, you must avoid, at all costs, using a high level l

Re: Garbage Collection woes...

2008-06-29 Thread mmalc crawford
On Jun 27, 2008, at 12:31 PM, John Engelhart wrote: -(BOOL)doSomething:(id)obj error:(NSError **)error { if(error != NULL) { *error = NULL; } // Make sure we clear the error object } Why are you doing this? It's sort of ambiguous as to what should be returned by the indirect error poin

Re: Garbage Collection woes...

2008-06-28 Thread Stephen J. Butler
On Fri, Jun 27, 2008 at 2:31 PM, John Engelhart <[EMAIL PROTECTED]> wrote: > Lesson #2: Since there is so little documentation about the GC system, this > involves a lot of speculation, but I think it summarizes what's really going > on. This all started with an effort to keep a __weak reference

Ask for help when encountering GC issues (was Re: Garbage Collection woes...)

2008-06-28 Thread Chris Hanson
On Jun 27, 2008, at 12:31 PM, John Engelhart wrote: Lesson #1: If you have any interest in performance, you must avoid, at all costs, "writing" to a __strong pointer. If this were the case, all assignments to instance variables would be exceptionally costly under GC. They are not -- appli