Re:Rust is now overall faster than C in benchmarks
by steerablesafe on Monday January 04, 2021 @05:36AM
(#25629630)
I'm skeptical. I doubt that the whole of qsort gets inlined (it's big), and the best the compiler can do is to clone qsort to const-propagate the function pointer for it to get inlined.
In my similar experiments with std::sort with a function pointer only gcc does this with -O3.
In my similar experiments with std::sort with a function pointer only gcc does this with -O3.