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 "C# (.NET) Application Performance" is a practical guide for developers who want to create fast, scalable, and responsive applications on the .NET platform. In today's world, software speed directly impacts user experience and business metrics, making knowledge of optimization techniques a mandatory skill for professional programmers.



This book is not overloaded with abstract theory — all materials are based on real-world examples and practical cases. You will learn how to properly profile code, identify bottlenecks, and eliminate them using proven techniques. Special attention is given to memory management: garbage collection, object pool management, avoiding leaks and fragmentation. You will also learn to effectively use asynchronous programming and parallel computing to fully utilize all CPU cores.



The book is suitable for both beginner C# developers and experienced professionals who want to deepen their knowledge and take their projects to a new level of performance. After reading, you will be able to:



  • Configure and interpret profiling results using Visual Studio, dotMemory, PerfView, and BenchmarkDotNet tools
  • Optimize memory management: reduce allocations, properly use Span and Memory, configure the garbage collector
  • Increase code execution speed through parallelism, asynchrony, and efficient use of Task, ValueTask, and Parallel LINQ
  • Accelerate database and network request operations by applying connection pools, caching, and batch processing
  • Design architecture for high-load systems: queues, backpressure, load balancing, and asynchronous patterns
  • Avoid common performance-degrading mistakes and write code that is easy to maintain and extend


Dedicated chapters cover working with collections, loop optimization, using structs instead of classes, as well as the intricacies of JIT compilation and AOT compilation in .NET. You will learn to measure performance not only at the microbenchmark level but also in real-world operational scenarios.



The book is written in accessible language and contains numerous diagrams, graphs, and code listings. Each chapter concludes with practical exercises to reinforce the material. This edition will become a desktop reference for everyone working with C# and .NET who strives for excellence in development.

Recommendations