lysdexic to ProgrammingEnglish · 2 years agoPush Ifs Up And Fors Downmatklad.github.ioexternal-linkmessage-square22linkfedilinkarrow-up156arrow-down16cross-posted to: [email protected]
arrow-up150arrow-down1external-linkPush Ifs Up And Fors Downmatklad.github.iolysdexic to ProgrammingEnglish · 2 years agomessage-square22linkfedilinkcross-posted to: [email protected]
minus-squareRyanlinkfedilinkEnglisharrow-up5arrow-down1·edit-22 years agoModern optimizing compilers are magical. I would need to check assembly but I would actually expect the if to be hoisted out of the loop entirely to relieve pressure on the branch predictor.
Modern optimizing compilers are magical. I would need to check assembly but I would actually expect the if to be hoisted out of the loop entirely to relieve pressure on the branch predictor.