News for hackers. Stuff that matters.
Re:DwarFS: A fast high compression read-only file system by Hello71 on Sunday November 29, 2020 @03:30PM (#25247803)
> 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?

Re:DwarFS: A fast high compression read-only file system by mhx77 on Monday November 30, 2020 @12:06PM (#25256038)
> 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. :)