
The Art of Writing Efficient Programs, 2nd Edition
The Art of Writing Efficient Programs is a second-edition C++ book about performance, hardware behavior, and modern concurrency. Its stated coverage includes CPU architecture, memory hierarchies, compiler behavior, atomics, lock-free structures, and coroutines, aimed at readers already comfortable with multithreading and memory management.
At a glance
- Connects C++ optimization techniques to CPU execution, caches, memory access, and compiler decisions.
- Expands concurrency coverage to include memory ordering, atomics, coroutines, NUMA-aware design, and concurrent data structures.
- The description says this edition includes ARM in its CPU architecture coverage.
Often bought together
Pros and cons
Pros
- Broad scope ties hardware architecture, memory behavior, compiler optimization, and concurrency together.
- Substantial concurrency focus covers practical subjects such as atomics, lock-free strategies, and coroutine-based execution.
- The description identifies experienced C++ programmers and performance-focused engineers as intended readers.
Cons
- The stated prerequisite knowledge in multithreading and memory management makes this a poor fit as a first C++ or concurrency book.
- Its advanced systems focus may be more specialized than needed for general-purpose C++ programming.
Technical specifications
10 specifications| Publisher | Packt Publishing |
|---|---|
| Edition | 2nd |
| Publication date | September 28, 2026 |
| Language | English |
| Print length | 702 pages |
| ISBN-10 | 1835465188 |
| ISBN-13 | 978-1835465189 |
| Weight listed | 2.61 pounds |
|---|---|
| Dimensions | 7.5 x 1.59 x 9.25 inches |
| Recommended background | Prior knowledge of multithreading and memory management is required |
|---|
What to know before buying
- This is described as a substantially expanded second edition, with concurrency rewritten and making up nearly half the book. The publication details list September 28, 2026, so confirm edition and availability timing when ordering.
Who is it for?
A good fit for
- Experienced C++ developers seeking deeper understanding of hardware-related performance.
- Engineers working on performance-sensitive software, including trading platforms, games, or scientific computing.
- Readers with prior multithreading and memory-management knowledge who want to study advanced concurrency.
Less suited to
- People learning C++ fundamentals or concurrency from scratch.
- Readers seeking a general programming reference without a focus on low-level performance and hardware.
Customer reviews on Amazon
- 5 stars
100% 100% - 4 stars
0% 0% - 3 stars
0% 0% - 2 stars
0% 0% - 1 star
0% 0%
The supplied evidence includes aggregate ratings but no written review summary. A favorable rating pattern among a small set of ratings offers limited context, and cannot show which topics readers valued or identify specific drawbacks.
Frequently asked questions
Who is this book intended for?
The listing targets experienced C++ developers, performance-focused programmers, and engineers in high-speed systems. It says prior knowledge of multithreading and memory management is required.
What subjects does the second edition cover?
The description lists CPU architecture and memory hierarchy, compiler behavior, atomic operations, memory ordering, coroutine-based execution, NUMA-aware design, and concurrent data structures.
Is this a beginner C++ book?
No. The stated audience is experienced C++ developers, and the listing specifically requires prior familiarity with multithreading and memory management.
How long is the book?
The product details list a print length of 702 pages.
Alternative options

Software Design in the Age of AI: The Art and the Craft
$54.99

C, C++, and C# Programming for Beginners: Write real programs, master memory management, and build your first web apps and 3D games with AI
$43.99

The Art of Writing Efficient Programs: An advanced programmer's guide to efficient hardware utilization and compiler optimizations using C++ examples
$43.99

20 Embedded Patterns Every Engineer Should Know: Design embedded systems that remain responsive, observable, and reliable
$39.99

Tour of C++, A (C++ In-Depth Series)
$39.59

The Practical Network Engineer's Guide: Master routing, network diagnostics, and troubleshooting
$37.99

Building Claude Skills: Turn repeatable work into reusable Claude Skills
$22.55

The Ultimate Linux Shell Scripting Guide: Automate, Optimize, and Empower tasks with Linux Shell Scripting
$33.24

Python Cheat Sheets: A Quick Visual Guide to Learn Python Programming
$17.99

Claude Visual Bible: A step-by-step, screenshot-by-screenshot guide to writing, researching, analyzing, and automating with Claude
$28.25

Build a Reasoning Model (From Scratch)
$47.99

Operating Systems: Three Easy Pieces
$28.00
























