Performance of C# (.NET) Applications
300 pages
English
PDF
4.5

Performance of C# (.NET) Applications

Performance of C# (.NET) Applications

Author:

Year:

Summary:

The book "Performance of C# (.NET) Applications" is a practical guide for developers who want to create fast, efficient, and scalable applications on the .NET platform. The author, Alexey Voronov, shares proven methodologies for profiling, code optimization, and resource management that will help you get the most out of your application.



What is this book about?

The book covers the full cycle of performance work — from diagnosing bottlenecks to implementing optimizations. You will learn:

  • How to use profilers (PerfView, dotTrace, BenchmarkDotNet) to find slow code sections.
  • The principles of the garbage collector (GC) and ways to minimize its impact on performance.
  • Techniques for optimizing memory usage: object pools, stack-based structures, Span and Memory.
  • Proper use of asynchrony (async/await) and parallelism (Task, Parallel LINQ).
  • Optimizing I/O, database operations, and network requests.
  • Tips for configuring the JIT compiler, AOT compilation, and other low-level .NET mechanisms.


Who is this book for?

The publication will be useful for:

  • C# developers at the Middle and Senior level who want to improve the performance of their projects.
  • Software architects designing high-load systems on .NET.
  • Team leads who want to instill a performance culture in their team.
  • Developers transitioning from other languages to C# who want to understand the platform's specifics.


What will you learn after reading?

  • You will learn to identify and eliminate bottlenecks in code.
  • You will be able to write code that consumes less memory and CPU time.
  • You will understand how garbage collection works and learn to manage it in real-world scenarios.
  • You will master modern optimization approaches: from using ValueTask to low-level memory operations.
  • You will get ready-made recipes for speeding up typical tasks: serialization, logging, working with collections.


The book is written in a lively language, contains many code examples and practical exercises. All techniques have been tested on real projects and are suitable for both desktop and server applications. If you want your .NET application to run fast and stable — this book is for you.

Recommendations