cm0002@lemmy.world to Programmer Humor@programming.dev · 1 year agoTell me the truth ...piefed.jeena.netimagemessage-square23linkfedilinkarrow-up11arrow-down10cross-posted to: programmerhumor@lemmy.ml
arrow-up11arrow-down1imageTell me the truth ...piefed.jeena.netcm0002@lemmy.world to Programmer Humor@programming.dev · 1 year agomessage-square23linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareLucy :3@feddit.orglinkfedilinkarrow-up1·1 year 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·1 year 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.