@cm0002@lemmy.world to Programmer Humor@programming.dev • 24 hours agoTell me the truth ...piefed.jeena.netimagemessage-square92fedilinkarrow-up1907
arrow-up1907imageTell me the truth ...piefed.jeena.net@cm0002@lemmy.world to Programmer Humor@programming.dev • 24 hours agomessage-square92fedilink
minus-squareNat (she/they)linkfedilink21•20 hours agoA lot of times using less memory is actually better for performance because the main bottleneck is memory bandwidth or latency.
minus-square@timhh@programming.devlinkfedilink1•3 hours agoIt’s not just less memory though - it might also introduce spurious data dependencies, e.g. to store a bit you now need to also read the old value of the byte that it’s in.
minus-squareCethinlinkfedilinkEnglish6•18 hours agoYep, and anding with a bit ask is incredibly fast to process, so it’s not a big issue for performance.
A lot of times using less memory is actually better for performance because the main bottleneck is memory bandwidth or latency.
It’s not just less memory though - it might also introduce spurious data dependencies, e.g. to store a bit you now need to also read the old value of the byte that it’s in.
Yep, and anding with a bit ask is incredibly fast to process, so it’s not a big issue for performance.