Home All Groups Group Topic Archive Search About
Author
17 Sep 2006 8:10 PM
luigi.corrias
If i dispose all object in my vb.net c# code what perfomances advantage
i have?

many thanks

Author
17 Sep 2006 9:18 PM
Barry Kelly
luigi.corr***@gmail.com wrote:

> If i dispose all object in my vb.net c# code what perfomances advantage
> i have?

I've posted an answer in the .general newsgroup.

-- Barry

Author
17 Sep 2006 9:54 PM
Cowboy (Gregory A. Beamer)
It is not so much a perf gain as it is a safety issue.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
<luigi.corr***@gmail.com> wrote in message
Show quote
news:1158523824.851729.308870@h48g2000cwc.googlegroups.com...
> If i dispose all object in my vb.net c# code what perfomances advantage
> i have?
>
> many thanks
>
Author
17 Sep 2006 11:10 PM
Barry Kelly
Cowboy (Gregory A. Beamer) wrote:

> It is not so much a perf gain as it is a safety issue.

If you write a program that sequentially processes many images
(System.Drawing.{Image,Bitmap}), you'll soon discover that there is a
performance side to things too. ;-)

Prompt disposal of expensive non-managed resources (such as GDI+
bitmaps) significantly reduces the fluctuation of the working set;
performance increases will be a function of how busy the machine is.

-- Barry


AddThis Social Bookmark Button