Writing High-Performance NET Code(2nd).pdf 2018新版

1星(超过10%的资源)
所需积分/C币:50 2018-10-17 17:46:57 11.75MB PDF
66
收藏 收藏
举报

Take performance to the next level! 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. This second edition incorporates the advances and improvements in .NET over the last few years, as well as greatly expanded coverage of tools, more topics, more tutorials, more tips, and improvements throughout the entire book. New in the 2nd Edition: 50% increase in content! New examples, code samples, and diagrams throughout entire book More ways to analyze the heap and find memory problems More tool coverage, including expanded usage of Visual Studio More benchmarking New GC configuration options Code warmup techniques New .NET features such as ref-returns, value tuples, SIMD, and more More detailed analysis of LINQ Tips for high-level feature areas such as ASP.NET, ADO.NET, and WPF
Writing High-Performance NET Code Writing High-Performance NET Code About the author Acknowledgements Foreword Introduction to the second edition Introduction Purpose of this Book Why Should You Choose Managed Code Is Managed Code Slower Than Native Code? Are The Costs worth the benefits? Am I Giving Up control? Work With the Clr, Not Against It Layers of optimization The Seductiveness of Simplicity NET Performance Improvements Over Time NET Core Sample source code Why Gears? Performance measurement and tools Choosing What to measure Premature Optimization Average vs. Percentiles Benchmarking Useful tools Measurement overhead Summary Memory management Memory allocation Garbage Collection Operation Configuration Options erformance Investigating Memory and GC Summary T Compilation Benefits of JIT compilation JiT in action JIT Optimizations Reducing JIT and Startup Time Optimizing JITting with Profiling(Multicore JIT) When to Use ngen NET Native Custom Warmup When JIT Cannot Compete Investigating JIT Behavior Summary Asynchronous Programming The thread pool The task Parallel libi TPL Dataflow Parallel loops Performance Tips Thread Synchronization and Locks nvestigating Threads and Contention Summary General Coding and Class design Classes and structs uples Interface Dispatch Avoid boxing ref returns and locals for vs foreach Casting P/Invoke Delegates Exceptions dynamic Reflection Code generation Preprocessing Investigating Performance Issues Summary Using the. NET Framework Understand Every api you call Multiple apis for the same thing Collections Strings Avoid APls that Throw Exceptions Under Normal circumstances Avoid APIs That Allocate From the Large Object Heap Use Lazy Initialization The Surprisingly High Cost of Enums Tracking Time Regular expressions LINQ Reading and writing files OptimizinghttpSettingsandNetworkCommunication SIMD Investigating Performance Issues Summary Performance counters Consuming Existing Counters Creating a Custom Counter Summary ETW Events Defining Events Consume Custom events in perfview Create a Custom ETw Event listener Get detailed event source data Consuming Clr and system events Custom Perfview Analysis Extension Summary Code Safety and analysis Understanding the os, APIs, and hardware Restrict API USage in Certain Areas of Your Code Centralize and abstract performance-Sensitive and difficult code Isolate Unmanaged and Unsafe Code Prefer Code Clarity to Performance Until Proven Otherwise Summary Building a Performance-Minded Team Understand the areas of critical performance Effective Testing Performance Infrastructure and automation Believe Only numbers Effective code reviews Education Summary Kick-Start Your Application's Performance Define metrics Analyze CPU Usage Analyze Memory Usage Analyze jit Analyze asynchronous performance Higher-Level Performance ASPNEt ADO.NET WPF Big o Common Algorithms and Their Complexity Bibli biography Useful resources People and blogs Contact information Writing High-Performance NET Code Writing high-Performance neT Code Version 2.0 Smashwords edition ISBN-13:978-0-990-58349-3 ISBN-10:0-990-58349-X Copyright c 2018 Ben Watson All Rights Reserved. These rights include reproduction, transmission translation, and electronic storage. For the purposes of Fair Use, brief excerpts of the text are permitted for non-commercial purposes. Code samples may be reproduced on a computer for the purpose of compilation and execution and not for republication This e Book is licensed for your personal and professional use only. You may not resell or give this book away to other people. If you wish to give this book to another person, please buy an additional copy for each recipient. If you are reading this book and did not purchase it, or it was not purchased for your use only, then please purchase your own copy. If you wish to purchase this book for your organization, please contact me for licensing information Thank you for respecting the hard work of this author Trademarks Any trademarked names, logos, or images used in this book are assumed valid trademarks of their respective owners There is no intention to infringe on the trademark DI disclaimer While care has been taking to ensure the information contained in this book is accurate, the author takes no responsibility for your use of the information presenter Contact For more information about this book, please visit http:www.writinghighperf.netoremailfeedback@writinghighperf.net Cover design CoverdesignbyClaireWatsonhttp://www.bluekittycreations.co.uk About the author Ben watson has been a software engineer at microsoft since 2008. On the Bing platform team, he has built one of the world's leading NET-based, high-performance server applications, handling high-volume, low-latency requests across thousands of machines for millions of customers. In his spare time, he enjoys books, music, the outdoors, and spending time with his wife Leticia and children emma and matthew. They live near Seattle, Washington USA Acknowledgements Thank you to my wife Leticia and our children emma and matthew for their patience, love, and support as I spent yet more time away from them to come up with a second edition of this book. Leticia also did significant editing and proofreading and has made the book far more consistent than it otherwise would have been Thank you to Claire Watson for doing the beautiful cover art for both book editions Thank you to my mentor Mike Magruder who has read this book perhaps more than anyone. He was the technical editor of the first edition and, for the second edition took time out of his retirement to wade back into the details of net hank you to my beta readers who provided invaluable insight into wording, topics, typos, areas I may have missed, and so much more: Abhinav Jain, Mike Magruder, Chad Parry, Brian Rasmussen, and Matt Warren. This book is better because of them Thank you to Vance Morrison who read an early version of this and wrote the wonderful foreword to this edition Finally, thank you to all the readers of the first edition, who with their invaluable feedback, have also helped contribute to making the second edition a better book in every way

...展开详情
试读 127P Writing High-Performance  NET Code(2nd).pdf 2018新版
立即下载 低至0.43元/次 身份认证VIP会员低至7折
一个资源只可评论一次,评论内容不能少于5个字
xucore 这不是原版的pdf,这是epub版本转的,效果不太好
2019-01-03
回复
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
  • 分享宗师

关注 私信
上传资源赚钱or赚积分
最新推荐
Writing High-Performance NET Code(2nd).pdf 2018新版 50积分/C币 立即下载
1/127
Writing High-Performance  NET Code(2nd).pdf 2018新版第1页
Writing High-Performance  NET Code(2nd).pdf 2018新版第2页
Writing High-Performance  NET Code(2nd).pdf 2018新版第3页
Writing High-Performance  NET Code(2nd).pdf 2018新版第4页
Writing High-Performance  NET Code(2nd).pdf 2018新版第5页
Writing High-Performance  NET Code(2nd).pdf 2018新版第6页
Writing High-Performance  NET Code(2nd).pdf 2018新版第7页
Writing High-Performance  NET Code(2nd).pdf 2018新版第8页
Writing High-Performance  NET Code(2nd).pdf 2018新版第9页
Writing High-Performance  NET Code(2nd).pdf 2018新版第10页
Writing High-Performance  NET Code(2nd).pdf 2018新版第11页
Writing High-Performance  NET Code(2nd).pdf 2018新版第12页
Writing High-Performance  NET Code(2nd).pdf 2018新版第13页
Writing High-Performance  NET Code(2nd).pdf 2018新版第14页
Writing High-Performance  NET Code(2nd).pdf 2018新版第15页
Writing High-Performance  NET Code(2nd).pdf 2018新版第16页
Writing High-Performance  NET Code(2nd).pdf 2018新版第17页
Writing High-Performance  NET Code(2nd).pdf 2018新版第18页
Writing High-Performance  NET Code(2nd).pdf 2018新版第19页
Writing High-Performance  NET Code(2nd).pdf 2018新版第20页

试读结束, 可继续阅读

50积分/C币 立即下载 >