Re: GC pros and cons

2009-06-24 Thread Stephen J. Butler
On Wed, Jun 24, 2009 at 7:40 PM, Jeff Laingjeff.la...@spatialinfo.com wrote: http://www.simple-talk.com/dotnet/.net-framework/understanding-garbage-collection-in-.net/ (Yes, I do .NET as well as Cocoa) No real surprises there, except for the closing paragraphs which can be paraphrased down

RE: GC pros and cons

2009-06-24 Thread Jeff Laing
Well, no, that's not a good summary of the last couple paragraphs. IF YOU HAVE A FINALIZER, then you should probably be using the Unless you peer into the implementation details of your superclasses, you should assume that all classes may have a finalizer. Unless you don't care about every

Re: GC pros and cons

2009-06-24 Thread Peter Ammon
On Jun 24, 2009, at 6:02 PM, Stephen J. Butler wrote: On Wed, Jun 24, 2009 at 7:40 PM, Jeff Laingjeff.la...@spatialinfo.com wrote: http://www.simple-talk.com/dotnet/.net-framework/understanding-garbage-collection-in-.net/ (Yes, I do .NET as well as Cocoa) No real surprises there, except

Re: GC pros and cons

2009-06-24 Thread Kyle Sluder
On Wed, Jun 24, 2009 at 7:55 PM, Peter Ammonpam...@apple.com wrote: Microsoft even says that all objects must be robust against being Dispose()d multiple times, which smacks of sloppiness.  If your program disposes of an object twice, then it is structured so that independent usages of the

Re: GC pros and cons

2009-06-24 Thread Stephen J. Butler
On Wed, Jun 24, 2009 at 8:19 PM, Jeff Laingjeff.la...@spatialinfo.com wrote: Unless you peer into the implementation details of your superclasses, you should assume that all classes may have a finalizer. Unless you don't care about every last little piece of performance. I don't understand

Re: GC pros and cons

2009-06-24 Thread Quincey Morris
On Jun 24, 2009, at 18:19, Jeff Laing wrote: Unless you peer into the implementation details of your superclasses, you should assume that all classes may have a finalizer. Unless you don't care about every last little piece of performance. In my day app, we regularly cache hundreds of

Re: GC pros and cons

2009-06-24 Thread Chris Idou
On Jun 24, 2009, at 18:19, Jeff Laing wrote: we regularly cache hundreds of thousands of objects from a persistent (relational) store and it is absolutely critical to us that the instant that those objects aren't required, they give their memory back - that's how we can run in a machine

Re: GC pros and cons

2009-06-24 Thread Marcel Weiher
On Jun 24, 2009, at 11:00 , Bill Bumgarner wrote: On Jun 24, 2009, at 12:51 PM, Quincey Morris wrote: In a nutshell, for folks like me who regularly use CFCreate … CFRelease in loops, what are the benefits of GC? If CFCreate/CFRelease is precisely what you want to do, there are no

Re: GC pros and cons

2009-06-24 Thread Greg Titus
On Jun 24, 2009, at 10:38 PM, Marcel Weiher wrote: On Jun 24, 2009, at 11:00 , Bill Bumgarner wrote: On Jun 24, 2009, at 12:51 PM, Quincey Morris wrote: In a nutshell, for folks like me who regularly use CFCreate … CFRelease in loops, what are the benefits of GC? If CFCreate/CFRelease is

<    1   2