Adrian Cochrane on Nostr: Push Ifs Up And Fors Down - Alex Kladov: ...
Push Ifs Up And Fors Down - Alex Kladov: https://matklad.github.io/2023/11/15/push-ifs-up-and-fors-down.html
Here its presented as a strategy for making functions more versatile, but within each individual function... Optimizing compilers like GCC or LLVM rearranges your code likewise.
So these legibility improvements *might* theoretically give you a performance boost!
Here its presented as a strategy for making functions more versatile, but within each individual function... Optimizing compilers like GCC or LLVM rearranges your code likewise.
So these legibility improvements *might* theoretically give you a performance boost!