fat struct style guide?
Andy Valencia
dont at spam.me
Fri Mar 6 18:10:41 UTC 2026
On Tuesday, 24 February 2026 at 16:45:30 UTC, H. S. Teoh wrote:
> Hmm. So basically the idea is to stuff everything into a
> single struct so that you keep everything in cache instead of
> having to dereference pointers?
I read that claim, but a union with keyed type would also achieve
(or outdo) the compactness and thus cache locality. It seems
like the flat layout of fields and its consequent streamlining of
how to think about access is a big part of it.
Andy
More information about the Digitalmars-d-learn
mailing list