Get the latest tech news

Ubuntu Provides More Insight Into Their Decision Not To "-O3" Optimize All Packages


Since last year Canonical had been investigating using -O3 compiler optimizations for their Ubuntu package builds in the name of delivering better performance for Ubuntu Linux

Long story short, with distribution-wide -O3 compiler optimizations they didn't have enough compelling performance benefits to justify the effort. They also found some performance regressions and the -O3 optimizations adversely impacting some load times as well as larger binary sizes in some cases. In addition, in some situations -O3 and Link Time Optimization together can result in excessive function inlining which then in turn regresses performance (presumably through register pressure or instruction cache thrashing).

Get the Android app

Or read this on Phoronix

Read more on:

Photo of Decision

Decision

Photo of ubuntu

ubuntu

Photo of packages

packages

Related news:

News photo

Ubuntu 25.04 Beta Officially Released

News photo

Ubuntu 25.04 Beta Delivering Some Nice Performance Improvements Over Ubuntu 24.10

News photo

Insight Mulls $4.5 Billion-Plus Sale of PDI Technologies