Get the latest tech news

Trust your compiler: Modern C++


has changed... does the received wisdom hold? Trust your compiler C++ programmers absorb a lot of performance wisdom by osmosis: fast inverse square root1, XOR swap2, hand-unrolled loops3, Duff’s device4, exceptions are slow, virtual calls are slow, division is slow, lookup tables often beat maths.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of modern c++

modern c++

Photo of compiler

compiler

Related news:

News photo

It's not me, it's the compiler

News photo

Zig: All Package Management Functionality Moved from Compiler to Build System

News photo

Compiler-Assisted Floating-Point Error Analysis and Profiling with FPChecker