News for hackers. Stuff that matters.
Re:Bubble sort slower with -O3 than -O2 with GCC by boibombeiro on Sunday October 17, 2021 @11:21PM (#28901938)
Modern x86 CPUs have micro instr caches to store small loops (about 50 instr) and medium loops (~2k instr). Also, the bottleneck is usually the instruction decoding (Alder Lake made huge changes on that, so this might change).

In other words, loop unrolling is, more often than not, harmful.

There are no comments on this comment yet.