O'Reilly logo

Writing High-Performance .NET Code, 2nd Edition by Ben Watson, Leticia Watson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Memory Management

Garbage collection, and memory management in general, will be the first and last things you work on. It is the apparent source of the most obvious performance problems, those that are quickest to fix, and will be something that you need to constantly monitor to keep in check. I say “apparent source” because as we will see, many problems are actually due to an incorrect understanding of the garbage collector’s behavior and expectations. You need to think of memory performance just as much as CPU performance. This is also true for unmanaged code performance, but in .NET it is a little more prominent, as well as easier to deal with. It is so fundamental to smooth .NET operation, that the most significant chunk of this book’s ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required