Rico also discusses this in his blog:
http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx.


Piers.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Pryor
Sent: Monday, May 03, 2004 2:42 PM
To: Marcus
Cc: [EMAIL PROTECTED]
Subject: Re: [Mono-list] How to use the Boehm garbage collector

On Mon, 2004-05-03 at 12:56, Marcus wrote:
> Also, my general obsevation for garbage collectors is that Collect() 
> should be interpreted as a hint to the GC that now would be a good time to
collect.

It should be further noted that calling System.GC.Collect() should be
avoided if at all possible.

See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/
scalenetchapt05.asp

(Search for "Avoid Calling GC.Collect".)

The short version is that .NET's GC system is self-tuning.  Manually calling
Collect() will alter its statistics, which can adversely affect application
performance.

 - Jon


_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to