~/talk

The End of std::endl

Talkat CppCon 2017 · 2017-09-24..09-29· [developer-experience]
links:none on file
slides:none on file

Claim: std::endl does a newline plus a flush and that flush can slow heavy output dramatically. Measurements show a simple test of writing 80‑char lines for a million lines gives a factor of six slowdown when using std::endl. Also debunks the myth that endl translates line endings — that happens at file/text mode, not endl. Recommends using std::flush when a flush is intended or rolling a tiny custom manipulator like nl; slides and code live at https://github.com/CppCon/CppCon2017

AI-written summary · about

  1. 0:00Start
  2. 0:36What Does std::endl Do?
  3. 1:45What's The Difference?
  4. 2:22Say What You Mean
  5. 2:45You Like the Manipulator?
  6. 3:01Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.