CachyOS does compile packages with the x86-64-v3, x86-64-v4 and Zen4 instruction set and LTO to provide a higher performance. Core packages also get PGO or BOLT optimization.
CachyOS utilizes the BORE Scheduler for better interactivity, and offers a variety of scheduler options including EEVDF, sched-ext, ECHO, and RT. All kernels are compiled with optimized x86-64-v3, x86-64-v4, Zen4 instructions and LTO to be optimized for your CPU.
I like the sound of that for my new gaming distro, but I really feel more comfortable in the .deb ecosystem.
really effects performance that much
Depending on the exact flags, some workloads will be faster, some will be identical, and some will be slower. Compilier optimization is some dark magic that relies on a ton of factors, but you can’t just assume that going from like -O2 to -O3 will provide better performance, since the optimizations also rely on the underlying code as to what they’ll actually make happen… and is why, for the most part, everyone suggests you stop at -O2 since you can start getting unexpected behavior the further up the curve you go.
And we’re talking low single digit performance improvements at best, not anything that anyone who is doing anything that’s not running benchmarks 24/7 would ever even notice in real world performance.
Disclaimer: there are workloads that are going to show different performance uplifts, but we’re talking Firefox and KDE and games here, per the OP’s comments.
Also they do default to a different scheduler, which is almost certainly why anyone using it will notice it feels “faster”, but it’s mainlined in the kernel so it’s not like you can’t use that anywhere else.
I don’t know of anything like what you’re looking for, but I have been using CachyOS for over a year now and I really like it. If you’re looking to get the most performance out of your machine for gaming I wouldn’t think you’d want such a stable release like Debian anyway.
Edit: like the other poster mentioned, I never did any testing or anything, but I also didn’t notice any major improvements when I switched from vanilla Arch to CachyOS to be fair.
Shades of bootstrapping Gentoo and spending two weeks of compute compiling Firefox because reasons.
Maybe PikaOS?
But, IIRC, they are not innovative like CachyOS is; CachyOS actually tries to push performance enhancements forward. PikaOS, on the other hand, only implements the improvements found by others (like CachyOS).
You could build Debian from scratch and use your preferred compiler settings.