YoVDO

Performance Analysis and Optimization of C++ Standard Libraries

Offered By: CppNow via YouTube

Tags

C++Now Courses Comparative Analysis Courses Code Optimization Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore performance analysis and optimization techniques for C++ standard libraries in this CppNow conference talk. Dive into improvements made to libcxx and libstdc++, including enhancements to algorithms like string::find and basic_streambuf::xsgetn. Learn about the development of std-benchmark for cross-library performance analysis. Examine ongoing performance issues and potential solutions, such as optimizing number parsing in stringstream and improving std::sort. Gain insights into effective use of C++ standard libraries, including best practices for containers like std::vector and std::string. Discover the impact of compiler optimizations and function attributes on library performance. Benefit from lessons learned through extensive analysis of C++ standard libraries, covering topics like algorithm selection, container usage, and language features.

Syllabus

Intro
Performance improvements
Missing inlining opportunities in basic_string (libc++)
Missing function attributes (libc++)
Issues with number parsing in locale
sort (Average case)
vector vs. deque (push_back)
vector vs. deque (access)
vector vs. deque (push_back + access)
Associative vs Hashed Associative (Finding random integers)
compiler vs. programmer vs. hand- optimized
Lessons learned (Algorithms)
Lessons learned (containers) optimizing destructor of string
Lessons learned (Language/Library)
Size (in bytes) of empty containers 64 bit
Optimize for latency


Taught by

CppNow

Related Courses

Your Favorite Undefined Behavior in C++
CppNow via YouTube
Under the Hood - Assembly, System Calls, and Hardware in C++
CppNow via YouTube
Carbon Language Successor Strategy - From C++ Interop to Memory Safety
CppNow via YouTube
Value Oriented Programming Part 1 - You Say You Want to Write a Function
CppNow via YouTube
Introducing a Memory-Safe Successor Language in Large C++ Code Bases
CppNow via YouTube