Re: RFC: Moving to -O3 for Fedora Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Neal Gompa wrote:
> I know the idea of moving to -O3 has been briefly mentioned before in
> other contexts when we've discussed uplifting the flags, but it looks
> like Ubuntu is moving to -O3 for Ubuntu 25.04[1]. Is there a reason
> why we shouldn't consider doing the same for Fedora Linux 42?

Yes, there is. The toolchain developers are against it. It bloats the 
programs, often leading to a performance decrease instead of the desired 
increase, and definitely leading to an increase in disk space and RAM use. 
Upstream GCC recommends using -O2 for a reason. See also Jakub Jelinek's 
reply.

Can we please not copy every bad idea Ubuntu comes up with? It is bad enough 
that we are bloating and slowing down the entire distribution with frame 
pointers that are completely useless to the vast majority (I would estimate 
>99%) of our user base (because only developers can possibly make any use of 
the frame pointers, not end users, and even developers only need it if they 
use some specific profilers, whereas debuggers and even some profilers can 
work just fine with unwinding information) over the objections of the 
toolchain team. Now you want to ignore their recommendations yet again, 
leading to yet another global distro-wide size increase, with no evidence of 
any real-world speed increase.

If we are going to consider switching away from -O2, then I would recommend 
-Os rather than -O3.

        Kevin Kofler

-- 
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux