On 2010 Aug 23, at 18:47, Gary L. Wade wrote:
> Have you considered that the code for -release may be implemented in a
> manner like this?
>
> -(oneway void)release
> {
>if (1 == self->retainCount)
>{
>// Let's save a few CPU cycles and not bother
>// decrementing retainC
That's exactly what Jerry just suggested was happening, however the
documentation implies that it's implemented more like
-(oneway void)release
{
self->retainCount--;
if (0 == self->retainCount)
[self dealloc];
}
But it doesn't really matter since you should neve
Have you considered that the code for -release may be implemented in a
manner like this?
-(oneway void)release
{
if (1 == self->retainCount)
{
// Let's save a few CPU cycles and not bother
// decrementing retainCount since it won't be
// around for long.
[se