NOTE
Memory Alignment in Go
Alignment, padding, struct layout, cache effects, and portable reasoning about field order.
This is a historical learning note and may contain outdated or incomplete understanding.
Values have alignment requirements that can introduce padding between struct fields and at the end of a struct. Reordering fields can change struct size, especially when small fields are interleaved with larger-alignment fields.
Exact sizes depend on architecture and types. Optimize layout only when memory density or cache behavior matters at scale; readability and stable semantics matter more for ordinary structs. Use unsafe.Sizeof/Alignof for inspection, not as portable constants across targets.