News for hackers. Stuff that matters.
Re:Bubble sort slower with -O3 than -O2 with GCC by jhgb on Sunday October 17, 2021 @04:15PM (#28899409)
Surely a profile-guided build should be able to only apply -Os to those functions where it doesn't cause a lot of problems.
Re:Bubble sort slower with -O3 than -O2 with GCC by pclmulqdq on Sunday October 17, 2021 @07:07PM (#28900578)
In the application I referred to, PGO was also used. However, that only applies -Os to cold code, and if what you're doing is very branchy, it can help even in the hot path.