Hook

I just found a tiny change that made CPUs up to 12% faster by adding just the number three to a file. CPUs don't want to wait for every answer, so they use branch prediction. They guess what happens next and start working ahead. An Intel engineer named Lili Cui discovered that a setting inside GCC, the compiler that turns code into machine instructions, had a penalty value that no longer matched modern processors. She changed that value by adding three. That tiny adjustment changed how the compiler handles risky decisions. Instead of creating expensive jumps, it started generating more branchless code, reducing wasted CPU work. The result, some workloads became up to 12% faster, showing that sometimes huge performance gains come from the smallest changes.
Their other posts in the index, biggest breakout first.