Jump to ratings and reviews
Rate this book

Writing High-Performance .Net Code

Rate this book
Do you want your .NET code to have the absolute best performance it can? This book demystifies the CLR, teaching you how and why to write code with optimum performance. Learn critical lessons from a person who helped design and build one of the largest high-performance .NET systems in the world.
This book does not just teach you how the CLR works-it teaches you exactly what you need to do now to obtain the best performance today. It will expertly guide you through the nuts and bolts of extreme performance optimization in .NET, complete with in-depth examinations of CLR functionality, free tool recommendations and tutorials, useful anecdotes, and step-by-step guides to measure and improve performance.
Among the topics you will learn are how to:
Choose what to measure and why Use many amazing tools, freely available, to solve problems quickly Understand the .NET garbage collector and its effect on your application Use effective coding patterns that lead to optimal garbage collection performance Diagnose common GC-related issues Reduce costs of JITting Use multiple threads sanely and effectively, avoiding synchronization problems Know which .NET features and APIs to use and which to avoid Use code generation to avoid performance problems Measure everything and expose hidden performance issues Instrument your program with performance counters and ETW events Use the latest and greatest .NET features Ensure your code can run on mobile devices without problems Build a performance-minded team ...and much more.

282 pages, Paperback

Published July 23, 2014

11 people are currently reading
55 people want to read

About the author

Ben Watson

59 books3 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
8 (44%)
4 stars
8 (44%)
3 stars
2 (11%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 5 of 5 reviews
Profile Image for Vladimir.
126 reviews
January 29, 2019
This is a perfect guide to .Net performance world. Strongly recommended to everyone who wants to learn more about performance and to know how deep the rabbit hole is. I'm pretty sure, you won't be disappointed.
613 reviews11 followers
April 27, 2019
This book offers many gems and helpful ideas on tuning .Net code. However, the author ignores for half of the book that not everyone knows as much about the topic as he does. There is no explanation on the why and a direct deep-dive into the how. That results in a dry and boring start that may lead to many readers giving up. In the second half there is more about the why and the explicit performance impact on writing code in a certain way. That is the part in which an average .Net developer finds the useful data and can start with optimizing their code (using the tools explained in the first half). A bit more explanations on the why and on the pro and cons of different approaches early on would have made reading this book for me a lot simpler.
Profile Image for Harshdeep.
74 reviews3 followers
April 16, 2021
This book is a much-needed toolset for serious developers and architects to learn how to measure and improve performance.

The first couple set of chapters gives you a set of tools to measure and analyze performance.
- PerfView
- PerfMon
- WinDbg
- And countless other tools to give company to above three

The Middle section gives you a set of tools to understand and improve the framework and your code performance.
- Garbage Collection Internals & Tweaks
- JIT Internals and Tweaks
- Async Programming walkthrough

And the last few chapters give you a set of nuts and bolts to improve that last mile performance improvement which we ignore, mostly.

A fantastic book to upgrade any developer’s toolkit for work. Recommend to all serious .Net buddies.
Profile Image for Alexey.
30 reviews3 followers
August 13, 2018
I read the 1st ed. multiple times and will read the 2nd ed. again.
Profile Image for Robson Castilho.
267 reviews35 followers
July 11, 2021
Although this 2nd edition is from 2018, I think the book remains outdated in several topics, ignoring Cloud tools and . Net code outside Windows.
Displaying 1 - 5 of 5 reviews

Can't find what you're looking for?

Get help and learn more about the design.