If you’ve ever wondered about .NET memory management, or had to get into the guts of your code to track down a memory leak, or wanted to make sure that your code performs as fast as possible, and with a small memory footprint, then I’ve got a book you should read. At the risk of being biased, it’s a book which I edited, and took from concept to print.
More to the point, it’s an eBook which is currently free to download: “Under the hood of .NET memory Management” by Chris Farrell and Nick Harrison. The book normally retails on Amazon for about $22, but you can download it for free (split into two parts) from the Red Gate website.
The book is part of an on-going project by Red Gate to help .NET developers learn more about .NET memory management (and thus write better code or debug issues faster). The front-man for this is Ricky Leeks, who (with a little help) regularly sources and publishes substantial .NET content.
If you want to know what’s on offer, here’s a quick summary:
Chris Farrell opens up with some great chapters laying out the .NET memory management model, and closes the book with some deeper dives into the Windows memory model and advanced .NET memory considerations like parallelism and 64-bit vs 32-bit. In the middle, Nick Harrison (who is a regular author over on Simple-Talk), walks through .NET memory troubleshooting and some handy platform-specific tips covering everything from ASP.NET to WPF.
“Under the hood of .NET memory management” is pretty comprehensive, and I’d strongly recommend it to anyone who wants to take their debugging and development up a notch (and not just because I worked on it). Grab your free copy, and check out Ricky Leeks’ top tips (which are regularly updated, and well worth a read).
EDIT: Part 2 of the eBook is now available, along with a link back to part 1 if you missed it.