|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Garbage collectionIf i dispose all object in my vb.net c# code what perfomances advantage
i have? many thanks luigi.corr***@gmail.com wrote:
> If i dispose all object in my vb.net c# code what perfomances advantage I've posted an answer in the .general newsgroup.> i have? -- Barry It is not so much a perf gain as it is a safety issue.
-- Show quoteGregory A. Beamer MVP; MCP: +I, SE, SD, DBA ************************************************* Think outside of the box! ************************************************* <luigi.corr***@gmail.com> wrote in message 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 > 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 |
|||||||||||||||||||||||