| Sign In/My Account | View Cart |
| Article: |
Knowing When to Let Go: Better Living Through Memory Management | |
| Subject: | is simpler slower? | |
| Date: | 2003-06-13 20:52:04 | |
| From: | iapole | |
|
Response to: is simpler slower?
|
||
| There, I knew there was a good reason not to use it! Thanks, I just couldn't remember it for the life of me. | ||
Showing messages 1 through 2 of 2.
-setFriend:(id)aFriend
{
if (aFriend != friend)
{
[friend release];
friend = [aFriend retain];
}
}
I suppose it depends on the efficency of the comparison operation.