Today is a free download without charge Download

Kurt Guntheroth - Optimized C++: Proven Techniques for Heightened Performance [2016, PDF/EPUB, ENG]

Reply to topic
 
Author
Message

Omen ®

Longevity: 8 years 3 months

Posts: 181087

Торрент-статистика

Post 10-May-2016 00:03

[Quote]

Optimized C++: Proven Techniques for Heightened Performance
Год издания: 2016
Автор: Kurt Guntheroth
Жанр или тематика: Программирование
Издательство: O'Reilly Media
ISBN: 978-1491922064
Язык: Английский
Формат: PDF/EPUB
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 388
Описание: In today’s fast and competitive world, a program’s performance is just as important to customers as the features it provides. This practical guide teaches developers performance-tuning principles that enable optimization in C++. You’ll learn how to make code that already embodies best practices of C++ design run faster and consume fewer resources on any computer—whether it’s a watch, phone, workstation, supercomputer, or globe-spanning network of servers.
Author Kurt Guntheroth provides several running examples that demonstrate how to apply these principles incrementally to improve existing code so it meets customer requirements for responsiveness and throughput. The advice in this book will prove itself the first time you hear a colleague exclaim, “Wow, that was fast. Who fixed something?”
- Locate performance hot spots using the profiler and software timers
- Learn to perform repeatable experiments to measure performance of code changes
- Optimize use of dynamically allocated variables
- Improve performance of hot loops and functions
- Speed up string handling functions
- Recognize efficient algorithms and optimization patterns
- Learn the strengths—and weaknesses—of C++ container classes
- View searching and sorting through an optimizer’s eye
- Make efficient use of C++ streaming I/O functions
- Use C++ thread-based concurrency features effectively

Примеры страниц

Оглавление

Table of Contents
Chapter 1 An Overview of Optimization
Optimization Is Part of Software Development
Optimization Is Effective
It’s OK to Optimize
A Nanosecond Here, a Nanosecond There
Summary of Strategies for Optimizing C++ Code
Summary
Chapter 2 Computer Behavior Affecting Optimization
Lies C++ Believes About Computers
The Truth About Computers
C++ Tells Lies Too
Summary
Chapter 3 Measure Performance
The Optimizing Mindset
Perform Experiments
Profile Program Execution
Time Long-Running Code
Estimate Code Cost to Find Hot Code
Other Ways to Find Hot Spots
Summary
Chapter 4 Optimize String Use: A Case Study
Why Strings Are a Problem
First Attempt at Optimizing Strings
Second Attempt at Optimizing Strings
Eliminate String Conversion
Summary
Chapter 5 Optimize Algorithms
Time Cost of Algorithms
Toolkit to Optimize Searching and Sorting
Efficient Search Algorithms
Efficient Sort Algorithms
Optimization Patterns
Summary
Chapter 6 Optimize Dynamically Allocated Variables
C++ Variables Refresher
C++ Dynamic Variable API Refresher
Reduce Use of Dynamic Variables
Reduce Reallocation of Dynamic Variables
Eliminate Unneeded Copying
Implement Move Semantics
Flatten Data Structures
Summary
Chapter 7 Optimize Hot Statements
Remove Code from Loops
Remove Code from Functions
Optimize Expressions
Optimize Control Flow Idioms
Summary
Chapter 8 Use Better Libraries
Optimize Standard Library Use
Optimize Existing Libraries
Design Optimized Libraries
Summary
Chapter 9 Optimize Searching and Sorting
Key/Value Tables Using std::map and std::string
Toolkit to Improve Search Performance
Optimize Search Using std::map
Optimize Search Using the Header
Optimize Search in Hashed Key/Value Tables
Stepanov’s Abstraction Penalty
Optimize Sorting with the C++ Standard Library
Summary
Chapter 10 Optimize Data Structures
Get to Know the Standard Library Containers
std::vector and std::string
std::deque
std::list
std::forward_list
std::map and std::multimap
std::set and std::multiset
std::unordered_map and std::unordered_multimap
Other Data Structures
Summary
Chapter 11 Optimize I/O
A Recipe for Reading Files
Writing Files
Reading from std::cin and Writing to std::cout
Summary
Chapter 12 Optimize Concurrency
Concurrency Refresher
C++ Concurrency Facilities Refresher
Optimize Threaded C++ Programs
Make Synchronization More Efficient
Concurrency Libraries
Summary
Chapter 13 Optimize Memory Management
C++ Memory Management API Refresher
High-Performance Memory Managers
Provide Class-Specific Memory Managers
Provide Custom Standard Library Allocators
Summary
Other forum [Profile] [PM]
Display posts from previous:    
Reply to topic

The time now is: Today 12:18

All times are GMT + 3 Hours



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum