Re: Performance problem with GC enabled
Re: Performance problem with GC enabled
- Subject: Re: Performance problem with GC enabled
- From: "Paul Sanders" <email@hidden>
- Date: Fri, 13 Mar 2009 18:03:39 -0000
> Without any sort of management, you'd leak memory like
> crazy in situations where neither the caller or the callee can release
> the object.
A scheme where it is always the caller's job to release any object returned
to it is perfectly viable, as any number of other computing platforms (such
as COM on Windows) will testify. The callee simply has to retain the object
before it returns it (and autorelease pools would not exist - hooray!).
Cocoa is one of a kind in this regard, as far as I know.
Anyway, I don't want to harp on. As you say, one has to live with it. I
just happen to think it was a mistake. Seductive but dangerous.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden