Re: Re: A non-sucking garbage collector
"Mark Hahn" <[email protected]> Mon, 19 Jul 2004 22:15:00 -0700
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <001101c46e18$847ea7e0$0d01a8c0@MarkVaio> |
From: "Greg Ewing" > Mark Hahn <[email protected]>: > > > The malloc call is extremely fast also. It just keeps one free pointer in a > > big pre-malloc'd arena and marches through giving out memory chunks of any > > size without keeping track of anything. > > Have you thought about how cache-unfriendly that behaviour > is going to be? Yes, I'm aware of it. The GC research I've done doesn't raise this as an issue though. I suspect (or at least hope) other performance issues outweigh this one. The only serious negative about copying I've seen is memory consumption which the general consensus is that is raises the overhead from %50 to %100 for a total increase of %33. The reason I like it is the ease of C coding and the way it works with my locking to allow continuous operation. To me that is worth the extra memory usage.