Gollum to Programmer Humor@programming.dev • 1 year agoPOV: Working at Googlefeddit.deimagemessage-square15fedilinkarrow-up1626arrow-down122
arrow-up1604arrow-down1imagePOV: Working at Googlefeddit.deGollum to Programmer Humor@programming.dev • 1 year agomessage-square15fedilink
minus-square@ramius345@sh.itjust.workslinkfedilink19•1 year agoDon’t need an if, just set the variable and collect the data. Saved you a jump instruction. The compiler is going to optimize it out anyway, but simpler code is better and some people forget the -O flag.
minus-squareSibbolinkfedilink3•1 year agoYeah but the last requires you to explicitly distinguish between the two cases.
Don’t need an if, just set the variable and collect the data. Saved you a jump instruction. The compiler is going to optimize it out anyway, but simpler code is better and some people forget the -O flag.
Yeah but the last requires you to explicitly distinguish between the two cases.