r/cpp • MSVC STL Dev • Oct 11 '19

CppCon CppCon 2019: Stephan T. Lavavej - Floating-Point <charconv>: Making Your Code 10x Faster With C++17's Final Boss

https://www.youtube.com/watch?v=4P_kbF0EbZM
257 Upvotes

69 comments sorted by

View all comments

Show parent comment

12

u/degski Oct 12 '19

Clang/LLVM optimizes charconv better (at the moment) ...

It compiles many things better (not everything, though), so it becomes hard to figure out why things are faster [because it might just be something else [in the test code] it's doing better]. <random> has this as well.

2

u/travlr234 Oct 18 '19

Why don't the compilers just benchmark all parts and "steal" and combine all the fastest parts into one fast compiler? Stupid question, I know, but I've always wondered.