~/talk

Floating-Point <charconv>: Making Your Code 10x Faster With C++17's Final Boss

links:none on file
slides:none on file

C++17's charconv adds to_chars/from_chars for fast, locale-free conversion and uses Ulf Adams' Ryu and Ryu-printf variants to produce shortest round-trip decimals. MSVC implements full support after a year of work, ships large lookup tables, and avoids null terminators. Microbenchmarks show precision printing speedups of roughly 4–13× and a worst-case general double print dropping from ~2855 ns to ~206 ns; some shortest prints hit ~50 ns, so it reliably accelerates serialization.

AI-written summary · about

  1. 0:00Start
  2. 0:14Introduction and speaker background
  3. 1:58Floating-point basics and representation
  4. 9:24Floating-point storage and IEEE 754
  5. 15:27Round-trip conversion and precision
  6. 21:28Introduction to <charconv>
  7. 27:29Using from_chars for parsing
  8. 33:09Using to_chars for formatting
  9. 41:17Algorithms behind <charconv> performance
  10. 48:44Performance benchmarks and speedups
  11. 55:05Implementation challenges and future work
  12. 58:35Memory usage and cache considerations
  13. 59:58Conclusion and Q&A
~/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.