~/talk

Throwing Exceptions for Fun and Profit

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

Argues that throwing exceptions can match return-code performance by moving construction and throw logic into a noinline/noreturn helper so call sites stay small and instruction-cache friendly, shows a templated raise<T>(...) with perfect forwarding and attributes that yields assembly nearly identical to a return path, records source file/line via a macro-wrapped source-location capture, and reduces exception-handling overhead by placing the catch outside tight loops so the catch frame is generated only once.

AI-written summary · about

  1. 0:00Introduction to Exceptions
  2. 1:25Reducing Exception Overhead
  3. 2:37Using Templates for Exceptions
  4. 3:45Performance Comparisons
  5. 4:24Tracking Exception Location
  6. 5:12Best Practices for Catching
~/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.