Hacker News new | ask | show | jobs
by jhgb 1712 days ago
Surely a profile-guided build should be able to only apply -Os to those functions where it doesn't cause a lot of problems.
1 comments

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.