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
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top