<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/c-performance-tips-cutting-down-on-unnecessary-objects---prithvi-okade-kathleen-baker---cppcon-zrbv1uh9y" -->

---
title: C++ Performance Tips: Cutting Down on Unnecessary...
description: A CppCon talk by two Microsoft Edge engineers covering practical techniques to eliminate unnecessary object creation in C++. Topics include: passing...
canonical: https://daily.dev/posts/c-performance-tips-cutting-down-on-unnecessary-objects---prithvi-okade-kathleen-baker---cppcon-zrbv1uh9y
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: C++ Performance Tips: Cutting Down on Unnecessary Objects - Prithvi Okade &amp; Kathleen Baker - CppCon | daily.dev
og:description: A CppCon talk by two Microsoft Edge engineers covering practical techniques to eliminate unnecessary object creation in C++. Topics include: passing...
og:url: https://daily.dev/posts/c-performance-tips-cutting-down-on-unnecessary-objects---prithvi-okade-kathleen-baker---cppcon-zrbv1uh9y
og:image: https://api.daily.dev/og/posts/zRBv1UH9Y.png
og:image:alt: C++ Performance Tips: Cutting Down on Unnecessary Objects - Prithvi Okade &amp; Kathleen Baker - CppCon
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

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

**[C\+\+](https://daily.dev/sources/isocpp)** · 53 min read · 0 upvotes · 0 comments

## Summary

A CppCon talk by two Microsoft Edge engineers covering practical techniques to eliminate unnecessary object creation in C++. Topics include: passing non-trivial types by const reference, using move semantics vs. copy, NRVO and guaranteed copy elision, string_view and span as lightweight alternatives, reserve() for strings and vectors, emplace vs. push/insert for STL containers, in-place construction for pair/tuple/optional/expected/variant, transparent comparators (std::less<>) for associative containers to avoid temporary string allocations, and moving constant data to compile time using constexpr. Clang-tidy checks and compiler warnings are highlighted throughout to help detect these patterns automatically.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=-qj_WGf5n_I>

## Similar posts on daily.dev

- [CppCon 2025: Clean code\! Horrible performance?](https://daily.dev/posts/cppcon-2025-clean-code-horrible-performance--uwq2toqzf) · C\+\+ · 0 upvotes · 0 comments

---

Tags: [#performance](https://daily.dev/tags/performance), [#c++](https://daily.dev/tags/c++)

[View this post on daily.dev](https://daily.dev/posts/c-performance-tips-cutting-down-on-unnecessary-objects---prithvi-okade-kathleen-baker---cppcon-zrbv1uh9y)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"C++ Performance Tips: Cutting Down on Unnecessary Objects - Prithvi Okade & Kathleen Baker - CppCon","url":"https://daily.dev/posts/c-performance-tips-cutting-down-on-unnecessary-objects---prithvi-okade-kathleen-baker---cppcon-zrbv1uh9y","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/c-performance-tips-cutting-down-on-unnecessary-objects---prithvi-okade-kathleen-baker---cppcon-zrbv1uh9y"},"datePublished":"2026-06-08T22:15:46.129Z","dateModified":"2026-06-08T22:16:07.011Z","description":"A CppCon talk by two Microsoft Edge engineers covering practical techniques to eliminate unnecessary object creation in C++. Topics include: passing...","image":"https://i.ytimg.com/vi/-qj_WGf5n_I/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/-qj_WGf5n_I/sddefault.jpg","isAccessibleForFree":true,"articleSection":"C++","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"C++","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c96d1356acb34a8d982064453dcfeb20","url":"https://daily.dev/sources/isocpp"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/c-performance-tips-cutting-down-on-unnecessary-objects---prithvi-okade-kathleen-baker---cppcon-zrbv1uh9y","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"performance,c++","timeRequired":"PT53M","video":{"@type":"VideoObject","name":"C++ Performance Tips: Cutting Down on Unnecessary Objects - Prithvi Okade & Kathleen Baker - CppCon","description":"A CppCon talk by two Microsoft Edge engineers covering practical techniques to eliminate unnecessary object creation in C++. Topics include: passing...","thumbnailUrl":"https://i.ytimg.com/vi/-qj_WGf5n_I/sddefault.jpg","uploadDate":"2026-06-08T22:15:46.129Z","duration":"PT53M","url":"https://api.daily.dev/r/zRBv1UH9Y","embedUrl":"https://www.youtube.com/embed/-qj_WGf5n_I"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"C++","item":"https://daily.dev/sources/isocpp"},{"@type":"ListItem","position":3,"name":"C++ Performance Tips: Cutting Down on Unnecessary Objects - Prithvi Okade & Kathleen Baker - CppCon"}]}
```

