Re: Re: Re: my garbage collector sucks
"Mark Hahn" <[email protected]>
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <007d01c45e73$3ddf7080$0d01a8c0@MarkVaio> |
From: "Paul Prescod" > What I find odd is that rather than acknowledging that this is a > performance tradeoff one makes by switching to (better performing) mark > and sweep garbage collectors, people act as if it is just the way the > universe is and will always be. While I agree that there seems to be some kind of conspiracy to ignore this issue among the GC "experts", I don't think it's totally a performance trade-off issue. I think using the finalizer for closing resources is bad even in Python. Would you really write Python code that used the finalizers to close files for you? That implicit operation is not good coding style no matter what GC you are using. When I first looked at your example it took me a while to figure out that you weren't opening 10000 files.