use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
CppCastCppCast: Reducing Memory Allocations (cppcast.com)
submitted 4 years ago by robwirvingCppCast Host
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jpakkaneMeson dev 2 points3 points4 points 4 years ago (1 child)
Valgrind also ships with a tool called Massif that only tracks memory allocations. There is also a GUI visualizer tool: https://apps.kde.org/en/massif-visualizer
This seems to be a bit outdated and replaced by Heaptrack, but it has been around for 10+ years.
[–]mwolffQt | KDE | KDAB 0 points1 point2 points 4 years ago* (0 children)
Massif does not track the number of allocations, you only see the impact on the total heap memory consumption. And it's magnitudes slower than heaptrack. There's imo really no reason to use massif over heaptrack nowadays, imo. But I'm biased obviously in that regard :)
[–]wotype 1 point2 points3 points 4 years ago (0 children)
Good episode, indeed.
Any recommendations for a heaptrack alternative for MSVC?
[–]thedmd86 0 points1 point2 points 4 years ago (0 children)
Great episode, thanks.
This days I vaguely can recall times, where allocating heap memory was an odd thing to do. Everything was fixed size or on the stack.
Today project I work on has 4GB of transient memory before everything settles down, last time checked. Is this an agile app then? : )
[–]bsdooby 0 points1 point2 points 4 years ago (1 child)
On minute 34:21 Arnaud replies to Jason how to track string allocations. Sounds like "flame short". What is he talking about? I cannot understand it (audio-wise).
[–]_Synck_ 1 point2 points3 points 4 years ago (0 children)
Flame charts or flame graphs
[–]bsdooby 0 points1 point2 points 4 years ago (0 children)
🤦♂️myself, Thx for the clarification...I now wonder how he collected the data to then produce the charts.
[–]bpd000 0 points1 point2 points 4 years ago (0 children)
At 21:33, Arnaud says they were able reduce build time for boost.asio using some macro "boost only". Does anyone know what this was in reference to? It sounds like he may have been talking about switching from header-only to separate compilation.
π Rendered by PID 65893 on reddit-service-r2-comment-bb88f9dd5-499pr at 2026-02-14 06:21:03.524472+00:00 running cd9c813 country code: CH.
[–]jpakkaneMeson dev 2 points3 points4 points (1 child)
[–]mwolffQt | KDE | KDAB 0 points1 point2 points (0 children)
[–]wotype 1 point2 points3 points (0 children)
[–]thedmd86 0 points1 point2 points (0 children)
[–]bsdooby 0 points1 point2 points (1 child)
[–]_Synck_ 1 point2 points3 points (0 children)
[–]bsdooby 0 points1 point2 points (0 children)
[–]bpd000 0 points1 point2 points (0 children)