News for hackers. Stuff that matters.
Re:Bubble sort slower with -O3 than -O2 with GCC by ncmncm on Sunday October 17, 2021 @08:20PM (#28900937)
I quite frequently find -O3 to produce slower code than -O2.

This is not actually surprising: the reliable operations are placed in 2, and the dodgy ones in 3. It is possible, even common, for 3 to be faster, but you can't rely on it. You have to measure.

There are no comments on this comment yet.