this post was submitted on 15 May 2025
1 points (100.0% liked)

Programmer Humor

31836 readers
537 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] 30p87@feddit.org 1 points 1 year ago (1 children)

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?

[โ€“] zea_64@lemmy.blahaj.zone 0 points 1 year ago

A lot of times using less memory is actually better for performance because the main bottleneck is memory bandwidth or latency.