advertisement

Article:
  Knowing When to Let Go: Better Living Through Memory Management
Subject:   is simpler slower?
Date:   2003-06-15 21:29:50
From:   anonymous2
Response to: is simpler slower?

Perhaps this would be faster?


-setFriend:(id)aFriend
{
if (aFriend != friend)
{
[friend release];
friend = [aFriend retain];
}
}


I suppose it depends on the efficency of the comparison operation.


1 to 1 of 1
  1. is simpler slower?
    2003-06-16 16:11:16  iapole [View]

1 to 1 of 1