News for hackers. Stuff that matters.
Re:Beating the Compiler by steveklabnik on Monday October 05, 2026 @01:36PM (#49967883)
One of the hardest parts of optimizations is not being penny wise and pound foolish. This sort of thing is a great example of that.

Additionally, a hard part is that all of this can change over time with new hardware! Some patterns that were crucial before everything gained branch predictors are irrelevant now, etc.

Re:Beating the Compiler by pfdietz on Monday October 05, 2026 @02:28PM (#49968583)
> penny wise and pound foolish

I love this saying. The general problem, optimizing the wrong metric, shows up all over the place.