r/cpp • • Feb 23 '26

Bit-field layout

https://maskray.me/blog/2026-02-22-bit-field-layout
28 Upvotes

13 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Feb 23 '26

[deleted] — view deleted comment

3

u/Potterrrrrrrr Feb 24 '26

Man I love that thing, when I first discovered it I spent a couple of hours tweaking various classes and managed to cut out quite a few bytes. Not sure it accomplished much performance wise but it was fun xD