3 ms·
There was a lot of debate back in the Gentoo days about whether to compile with -O3, -O2, or -Os -Os meant faster launch times, which for desktop Linux made se
by phamilton 6y ago
There was a lot of debate back in the Gentoo days about whether to compile with -O3, -O2, or -Os
-Os meant faster launch times, which for desktop Linux made sense, but in classic Gentoo fashion a big group used -O3 and then did a bunch of hacks to make sure binaries would be loaded at startup and never be evicted from memory (even if the application itself wasn't running).
Gentoo was delightfully silly about this stuff, and mostly self aware that it was excessive.
- MereInterest 6y agoDepending on the conditions, you can get faster speed with -Os even if the binary is never evicted from memory. If you are optimizing for size, then you may be able to fit more of the program into the CPU cache, which can be accessed much faster than the main memory.
- TylerE 6y agoWeren't there tests back then that showed -Os was actually faster on a lot of modern CPUs? Something like more of the binary staying in CPU cache?
- IgorPartola 6y agoOh god I remember this. Compiling the compiler to compile it again to compile the kernel to install everything. Every few weeks. While trying to find something that used less memory than openbox.