That moment when you're optimizing memory usage and think "You know what? A char is 8 bits but I only need to store 5 characters... I could totally squeeze that into a 32-bit integer." Then you spend 6 hours bit-shifting and masking when you could've just used an array and gone home early. But hey, you saved 3 whole bytes! Practically a hero of computer science.
Why Shouldn't I Save 5 Chars As An Int?
3 months ago
298,418 views
0 shares
memory-optimization-memes, premature-optimization-memes, bit-manipulation-memes, char-vs-int-memes, overthinking-memes | ProgrammerHumor.io
More Like This
WoW! HoW?
4 years ago
56.5K views
0 shares
*reads in Carl Sagan's voice*
2 years ago
55.2K views
0 shares
Make files more compressible by sorting them alphabetically!
4 years ago
50.4K views
0 shares
Eventual consistency in comicstrip form
4 years ago
50.8K views
0 shares
When there’s too many bugs
4 years ago
63.0K views
0 shares
Truly Terrifying
9 months ago
182.0K views
1 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp