Using the System.GC APIs to Improve Performance

Chris Lyon here.  You may remember me from such blogs as How I Learned to Stop Worrying and Love the GC.  I’m writing this blog entry to point out some of the System.GC APIs that can be used to help improve the performance of your managed application.   AddMemoryPressure and RemoveMemoryPressure The Garbage Collector (GC)…

4

Track down DLL loading using Visual Studio

Application performance matters — including start up times, working sets and memory consumption. One path leading to more efficient code is loading fewer DLLs. One should only be loading modules that are really needed. However, it is very easy to accidentally load more DLLs at startup than necessary leading to lower performance including longer startup…

1

Adding Custom Actions to NGen an Assembly upon Install

This  document details how to use custom actions to Ngen (generate a native image) upon installation of a project.  Assemblies that are NGen’ed have better startup performance than those that are JIT’ted: http://msdn.microsoft.com/en-us/magazine/cc163610.aspx Step 1: Creating and building your sources I am assuming that you have created a new project, written all your source files,…

0