cm0002@lemmy.world to Programmer Humor@programming.dev · 2 years agoTell me the truth ...piefed.jeena.netimagemessage-square23linkfedilinkarrow-up12arrow-down11cross-posted to: programmerhumor@lemmy.ml
arrow-up11arrow-down1imageTell me the truth ...piefed.jeena.netcm0002@lemmy.world to Programmer Humor@programming.dev · 2 years agomessage-square23linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareLucy :3@feddit.orglinkfedilinkarrow-up1·2 years agoThen you need to ask yourself: Performance or memory efficiency? Is it worth the extra cycles and instructions to put 8 bools in one byte and & 0x bitmask the relevant one?
minus-squareNat (she/they)@lemmy.blahaj.zonelinkfedilinkarrow-up0·2 years agoA lot of times using less memory is actually better for performance because the main bottleneck is memory bandwidth or latency.
Then you need to ask yourself: Performance or memory efficiency? Is it worth the extra cycles and instructions to put 8 bools in one byte and & 0x bitmask the relevant one?
A lot of times using less memory is actually better for performance because the main bottleneck is memory bandwidth or latency.