Garbage collection

  • Thread starter Thread starter luigi.corrias
  • Start date Start date
L

luigi.corrias

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

many thanks
 
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!
*************************************************
 
Cowboy said:
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
 
Back
Top