C++ Performance Tips: Cutting Down on Unnecessary Objects - Prithvi Okade & Kathleen Baker - CppCon @CppCon
C++ Performance Tips: Cutting Down on Unnecessary Objects - Prithvi Okade & Kathleen Baker - CppCon  @CppCon
Uploaded January 2026 | Updated November 2026, 13 hours ago
cppcon.org
---

C++ Performance Tips: Cutting Down on Unnecessary Objects - Prithvi Okade & Kathleen Baker - CppCon 2025
---

In C++, unnecessary temporary object creation can lead to costly runtime operations, increased code execution, and higher memory usage. Luckily this can be improved! This talk investigates common scenarios that result in the creation of temporary objects and how to detect these scenarios, demonstrated through code examples. We will then explore strategies to reduce the creation of such objects with techniques like explicitly moving objects, passing objects by reference, leveraging lightweight classes like std::string_view and std::span , using functions like reserve and emplace , and more. Join us to learn how to optimize your code’s performance and adopt better practices.

---

Slides: github.com/CppCon/CppCon2025/blob/main/Presentations/Cpp_Performance_Tips.pdf

Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---

Prithvi Okade

Kathleen Baker

Kathleen is a software engineer at Microsoft, currently working on the Edge browser team. She joined Microsoft after completing her undergraduate degree at the University of Alberta.
---


CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---

Videos Filmed & Edited by Bash Films: BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---

#cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #technology #technews #programming #programmer
C++ Performance Tips: Cutting Down on Unnecessary Objects - Prithvi Okade & Kathleen Baker - CppConEnd-to-End Latency Metrics From Distributed Trace - Kusha Maharshi - CppCon 2025Lightning Talk: Optimizing Memcpy Reads From DMA Memory - Arjun Mariyala - CppCon 2025Lightning Talk: Cant we Just Synthesize std::tuple_element From Get? - Jonathan MüllerLightning Talk: Every Use Case of Colon and Ellipses in C++ - Ali Almutawa Jr. - CppCon 2024Lightning Talk: The Main Points in C++ - Dots in C++ - Miodrag Misha Djukic - CppCon 2024Mastering C++ Move Semantics and rvalue ReferencesCatching Bugs Early: Validating C++ Contracts with Static Analysis - Peter Martin & Mike FairhurstLightning Talk: The Lifecycle of This CMake Lightning Talk - Yannic Staudt - CppCon 2025Compiler Explorer: The Features You Never Knew Existed - Matt Godbolt - CppCon 2025Profiles for Simplicity and Guarantees - Bjarne Stroustrup - CppCon 2026Lightning Talk: Micro C++ Benchmarks & Murphys Law - Lexington Brill - CppCon 2024
CppCon |

C++ Performance Tips: Cutting Down on Unnecessary Objects - Prithvi Okade & Kathleen Baker - CppCon

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER