gentooLTO icon indicating copy to clipboard operation
gentooLTO copied to clipboard

Ofast.conf file

Open billyb2 opened this issue 5 years ago • 2 comments

While working on ltoworkarounds.conf, I started to add a few packages into my own config file called ofast.conf. They're packages that compile sucessfully with ofast, and work properly after testing. I was wondering if this could be added into the official repository. Packages would probably have to be manually added to use ofast, since many packages would likely break with it.

billyb2 avatar Jan 12 '21 21:01 billyb2

I'm using Ofast globally and only a very few number of packages actually has build failure due to that. Of course a couple package silently escaped due to flag filtering.

Currently I have 613 packages installed and 599 of them are build with Ofast.

Anyways, I think what Im doing is pretty stupid since certain packages will perform worse with Ofast (or even O3) due to larger binary causing cache misses. Adding Ofast simply because it compiles and works, imo is not a good approach (even tho I'm personally guilty of doing exactly this.)

A proper (but time consuming) approach would be to actually benchmark and verify if Ofast is actually providing performance improvement or not. In certain cases Os might even outperform Ofast.

N-R-K avatar May 02 '21 19:05 N-R-K

@N-R-K I no longer use Gentoo as of writing this, but I think the idea of programs that are bench-marked to be faster while using Ofast would be a great idea, and something that GentooLTO users would be happy with.

I understand and agree with you when it comes to not having a universal Ofast, however.

billyb2 avatar May 03 '21 01:05 billyb2