News for hackers. Stuff that matters.
Re:The Lost Art of Structure Packing (2018) by joosters on Monday April 27, 2020 @11:05AM (#22996513)
TLDR: When defining a struct, put the biggest items first. This works well in almost all cases.

If you need to squeeze out all padding, use compiler directives like '#pragma pack', but be aware of the performance implications.

There are no comments on this comment yet.