• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Performance problem with GC enabled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Performance problem with GC enabled
      • From: Michael Ash <email@hidden>
References: 
 >Performance problem with GC enabled (From: John Engelhart <email@hidden>)
 >Re: Performance problem with GC enabled (From: Bill Bumgarner <email@hidden>)
 >Re: Performance problem with GC enabled (From: Marcel Weiher <email@hidden>)
 >Re: Performance problem with GC enabled (From: "Paul Sanders" <email@hidden>)
 >Re: Performance problem with GC enabled (From: Bill Bumgarner <email@hidden>)
 >Re: Performance problem with GC enabled (From: "Paul Sanders" <email@hidden>)
 >Re: Performance problem with GC enabled (From: Louis Gerbarg <email@hidden>)
 >Re: Performance problem with GC enabled (From: "Paul Sanders" <email@hidden>)
 >Re: Performance problem with GC enabled (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSTextFieldCell text color issue in NSTableView with source list highlighting
  • Next by Date: Re: Singleton Help ...
  • Previous by thread: Re: Performance problem with GC enabled
  • Next by thread: Re: Performance problem with GC enabled
  • Index(es):
    • Date
    • Thread