Re: Garbage Collection - The Trash Begins To Pile Up
In article <1167363058.316895.85110@73g2000cwn.googlegroups.com>,
"Le Chaud Lapin" <jaibuduvin@gmail.com> wrote:
See again the problems:
Let's compare them with the problems of using a regular malloc/free heap:
* An OutOfMemoryException is thrown.
A std::bad_alloc exception is thrown.
* The process is using too much memory for no obvious reason that
you can determine.
The process is using too much memory for no obvious reason that you can
determine.
* It appears that garbage collection is not cleaning up objects
fast enough.
Nothing can clean up the objects.
* The managed heap is overly fragmented.
The malloc/free heap is overly fragmented.
* The application is excessively using the CPU.
The application is excessively using the CPU.
Any engineer who designs a program that contains these problems in such
significant quantities as to warrant an article being written about it
should be ashamed of him/herself.
So you are basically arguing that we shouldn't be using a heap *at all*;
no polymorphism, all lifetimes have to be LIFO, etc.
-Le Chaud Lapin-
Reference:
http://msdn.microsoft.com/msdnmag/issues/06/11/CLRInsideOut/default.aspx
--
Nevin ":-)" Liber <mailto:nevin@eviloverlord.com> 773 961-1620
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]