~/talk

Faster Complex Numbers

Talkat CppCon 2015 · 2015-09-21..09-25· [c-and-cpp]
slides:none on file

Benchmarks compare std::complex, a naive eager class, expression-template wrappers and hand‑crafted C-style code across GCC, Clang and MSVC; std::complex generates extra library calls doing IEEE corner-case checks, causing slowdowns (Clang shows ~3× gap). Expression templates recover much of the abstraction on MSVC (about 2× speedup) and help on complex expressions, while hand‑crafted code remains fastest on some compilers; GCC with -ffast-math enabled eliminates the gap. Build and assembly inspection confirm the cause.

AI-written summary · about

  1. 0:00Introduction to complex numbers
  2. 1:57Geometric representation
  3. 2:19Applications and C++ usage
  4. 7:48Implementing an oscillator
  5. 9:03C++14 lambdas
  6. 9:59Complex resonator filter
  7. 12:48Performance benchmarks
  8. 15:21Expression templates technique
  9. 17:22Implementing expression templates
  10. 22:05Assembly analysis
  11. 22:35IEEE 754 compliance issues
  12. 23:01Fast math optimization
  13. 26:51Final conclusions
  14. 28:15Q&A session
  15. 29:26Further discussion
~/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.