4 ms·
> You can pick either clang or g++, but at least recent clang versions will produce substantially faster code have you investigated why this might be the case?
by Hello71 6y ago
> You can pick either clang or g++, but at least recent clang versions will produce substantially faster code
have you investigated why this might be the case?
- mhx77 6y ago> have you investigated why this might be the case? Very briefly. It looks like clang has a different strategy breaking up the code (which is mostly C++ templates) into actual functions vs. inlining it, and the hot code ultimately performs fewer function calls with clang than it does with gcc. But this is nowhere near a proper analysis of what's going on. :)