The Art of Writing Efficient Programs Second Edition Master high-performance C++ and modern concurrency by understanding how… (Fedor G. Pikus) (z-library.sk, 1lib.sk, z-lib.sk)
Gain practical skills to optimize C++ programs using modern CPU architectures, memory models, and concurrency tools Key Features Apply advanced CPU, memory, and concurrency techniques to real-world code Design efficient thread-safe data structures using lock-free and atomic strategies Leverage compiler behavior and modern C++ standards for performance gains Book Description The great free lunch of "performance taking care of itself" is over. Until recently, programs got faster by themselves as CPUs were upgraded, but that doesn't happen anymore. The clock frequency of new processors has almost peaked, and while new architectures provide small improvements to existing programs, this only helps slightly. To write efficient software, you now have to know how to program by making good use of the available computing resources, and this book will teach you how to do that. This fully updated second edition expands on CPU architectures (including ARM), instruction processing, and memory paging. It introduces modern concurrency tools, like atomic shared pointers and coroutine-based flow control, and features best practices for NUMA-aware development. A complete rewrite of the chapter on concurrent data structures includes advanced techniques like "helping" to improve multithreaded throughput. Written by Fedor G. Pikus, industry leader in high-performance computing and C++, this book equips you with both conceptual clarity and the hands-on techniques needed to make your software faster, leaner, and smarter. What you will learn Analyze and optimize CPU resource usage Improve memory access patterns across architectures Design performant multithreaded and lock-free systems Use atomic operations and smart pointers effectively Apply memory order guarantees for correctness and speed Evaluate compiler decisions and leverage vectorization Implement coroutine-based execution models Build APIs that scale in concurrent environments Who this book is for Experienced C++ developers, perfor
AI Guide
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Passage locations
Recommended for You
Tip the Site
Scan the WeChat Pay or Alipay code to tip. No login required.