Pro .NET Performance: Optimize Your C# Applications (Paperback)

Sasha Goldshtein

商品描述

Maximizing the performance of your algorithms and applications is extremely important and can give you a competitive advantage, a lower cost of ownership, and happier users. Pro .NET Performance explains the internals of Windows, the CLR, and the physical hardware that affect the performance of your applications, and gives you the knowledge and tools to measure how your code performs in isolation from external factors.

The book is full of C# code samples and tips to help you squeeze every bit of juice from your application—lower memory utilization, consistent CPU usage, and fewer I/O operations across the network and disk. Pro .NET Performance will change the way you think about .NET application development.

  • Guides you through performance measurement with a variety of profilers and other tools
  • Explains how OS and CLR internals affect your application’s performance in unexpected ways
  • Provides you with tips and real-life case studies for improving application performance

What you’ll learn

  • Measure your code’s performance with profilers and other tools.
  • Understand where the bottlenecks are and focus on the right area for performance improvement.
  • Manage memory efficiently by interacting properly with the garbage collector.
  • Avoid common pitfalls by choosing the right abstractions.
  • Understand the performance implications of the underlying operating system and runtime.
  • Improve the performance of your applications by parallelization, caching, micro-optimization, and other techniques.

Who this book is for

Pro .NET Performance is for working .NET developers who care about the performance of their applications. It requires basic familiarity with Windows and the CLR, but guides the reader along the way and does not require prior experience with any performance-measurement tools. Pro .NET Performance also offers practical tips, case studies, and low-level knowledge for experienced developers and architects.

Table of Contents

Chapter 1: Performance Metrics

Chapter 2: Performance Measurement Tools

Chapter 3: Type Internals

Chapter 4: Garbage Collection and Finalization

Chapter 5: Collections and Generics

Chapter 6: Concurrency and Parallelism

Chapter 7: Networking, I/O, and Serialization

Chapter 8: Unsafe Code and Interoperability

Chapter 9: Algorithm Optimization

Chapter 10: Performance Patterns

Chapter 11: Web Application Performance

商品描述(中文翻譯)

最大化算法和應用程序的性能非常重要,可以為您帶來競爭優勢、降低擁有成本並使用戶更滿意。《Pro .NET Performance》解釋了影響應用程序性能的Windows、CLR和物理硬件的內部工作原理,並提供了測量代碼在外部因素影響下的性能的知識和工具。

該書充滿了C#代碼示例和技巧,幫助您從應用程序中榨取每一點性能-降低內存使用、保持一致的CPU使用率,以及減少網絡和磁盤上的I/O操作。《Pro .NET Performance》將改變您對.NET應用程序開發的看法。


  • 使用各種分析器和其他工具指導您進行性能測量

  • 解釋操作系統和CLR內部工作原理對應用程序性能的意外影響

  • 提供改善應用程序性能的技巧和實際案例研究

您將學到什麼



  • 使用分析器和其他工具測量代碼的性能

  • 了解瓶頸所在,並專注於性能改進的正確領域

  • 通過與垃圾回收器的正確交互來有效管理內存

  • 通過選擇正確的抽象來避免常見問題

  • 了解底層操作系統和運行時的性能影響

  • 通過並行化、緩存、微優化和其他技術提高應用程序的性能

本書適合對象


《Pro .NET Performance》適用於關心其應用程序性能的.NET開發人員。它需要對Windows和CLR有基本的熟悉,但會引導讀者並不需要先前使用任何性能測量工具的經驗。《Pro .NET Performance》還為有經驗的開發人員和架構師提供實用的技巧、案例研究和低級知識。

目錄


第1章:性能指標
第2章:性能測量工具
第3章:類型內部工作原理
第4章:垃圾回收和終結
第5章:集合和泛型
第6章:並發和並行
第7章:網絡、I/O和序列化
第8章:不安全代碼和互操作性
第9章:算法優化
第10章:性能模式
第11章:Web應用程序性能