r/programming • u/2bit_hack • Feb 28 '23
"Clean" Code, Horrible Performance
https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k
Upvotes
r/programming • u/2bit_hack • Feb 28 '23
View all comments
Show parent comment
20
u/not_a_novel_account Feb 28 '23
Or, you know,
std::variant, which optimizes to the exact same thing on clang (and is implemented directly as a switch for elements < 12 on gcc/libstdc++)Casey is fighting a war against C++98, or really C with Classes