cm0002@lemmy.world to Programmer Humor@programming.dev · 1 year agoTell me the truth ...piefed.jeena.netimagemessage-square15linkfedilinkarrow-up10arrow-down10
arrow-up10arrow-down1imageTell me the truth ...piefed.jeena.netcm0002@lemmy.world to Programmer Humor@programming.dev · 1 year agomessage-square15linkfedilink
minus-squareLucy :3@feddit.orglinkfedilinkarrow-up0·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.