Adrian Cochrane on Nostr: Push Ifs Up And Fors Down - Alex Kladov: Here its presented as a strategy for making ...
Push Ifs Up And Fors Down - Alex Kladov:
https://matklad.github.io/2023/11/15/push-ifs-up-and-fors-down.htmlHere 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!
Published at
2023-11-16 17:15:15Event JSON
{
"id": "04385bf964b461de5c6d668f4b5f86d3cfe1bb7c7480eccfc497aeffd630c85a",
"pubkey": "950683e4224489cf148b5300fbc228357ee4936682e0d295d894f8f1d3cdcc4a",
"created_at": 1700154915,
"kind": 1,
"tags": [
[
"proxy",
"https://floss.social/users/alcinnz/statuses/111421352565727753",
"activitypub"
]
],
"content": "Push Ifs Up And Fors Down - Alex Kladov: https://matklad.github.io/2023/11/15/push-ifs-up-and-fors-down.html\n\nHere 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.\n\nSo these legibility improvements *might* theoretically give you a performance boost!",
"sig": "eb028550be72b17bbe05a913a55d3a42051fbd3bc112e33e8ba5d80e54a55bba97562ec675585c8df339f9d533d1cbe1d9b3de740a09de0980570c8fea4ddb39"
}