Article: The Lost Art of Structure Packing
Walter Bright
newshound2 at digitalmars.com
Mon Nov 2 18:29:54 UTC 2026
On 11/1/2026 4:29 PM, Richard (Rikki) Andrew Cattermole wrote:
> I found this rather nice article about padding in structs, it also applies to D.
>
> http://www.catb.org/esr/structure-packing/
Yes, it's pretty straightforward. D matches the way the corresponding C compiler
lays things out.
The next step is to group together fields that are temporally accessed together,
because of memory caching.
More information about the Digitalmars-d
mailing list