~/talk

How to Quickly Convert Floating-Point Numbers in C++

Talkat CppCon 2024 · on Sunday, 2024-09-15· [web-performance]
links:none on file
slides:none on file

Introduces Dragonbox, a new algorithm that outputs decimal shortest-roundtrip strings, implements round-trip safety with explicit permissible-interval math and round‑to‑even tie rules, and replaces expensive per-number divisions by precomputed rational approximations and lookup tables. Compares wall‑clock timings to Jaguar, Ryu/Grisu family and shows distributional results across all doubles, finding Dragonbox wins many cases but trades simplicity for rare slowdowns; reports the fraction of uncentered values around 14% and publishes full measurements and slides.

AI-written summary · about

  1. 0:00Introduction
  2. 2:32Floating-point conversion matters
  3. 4:43Binary format
  4. 10:13Binary floating-point
  5. 16:381/3 result in C++
  6. 20:39Dragon algorithm history
  7. 24:01Dragon algorithm requirements
  8. 30:56Jaguar algorithm
  9. 36:12Jaguar algorithm F
  10. 42:58Optimizing Jaguar in C++
  11. 47:03Performance vs Dragon Box
  12. 51:06Conclusion & 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.