4 ms·
> If you’re relying on it then you’re playing with fire. Unfortunately I think Linux kernel is one of the most notable examples in which case you have to compi
by mshockwave 2y ago
> If you’re relying on it then you’re playing with fire.
Unfortunately I think Linux kernel is one of the most notable examples in which case you have to compile with -O1 or up.
- pizlonator 2y agoThat's not playing with fire. Playing with fire is when you require an optimization to hit in a specific place in your code. Having software that only works if optimized means you're effectively relying on optimizations hitting with a high enough rate overall that your code runs fast enough. It's like the difference between an amateur gambler placing one huge ass bet and praying that it hits and a professional gambler (like a Blackjack card counter, or a poker pro) placing thousands or even millions of bets and relying on postive EV to make a profit.