# \#warngroup

**URL:** https://forums.swift.org/tag/warngroup/1233.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [Pitch: An opt-in warning for avoidable struct padding](https://forums.swift.org/t/pitch-an-opt-in-warning-for-avoidable-struct-padding/90128)

<div class="topic-metadata">

**Author:** [@CodebyCR](https://forums.swift.org/u/CodebyCR)\
**Replies:** 5\
**Last updated:** [October 18, 2026, 7:43am UTC](https://forums.swift.org/t/pitch-an-opt-in-warning-for-avoidable-struct-padding/90128 "2026-10-18T07:43:29Z")

</div>

Swift lays out stored properties in declaration order and never reorders them, so a poorly ordered struct silently wastes memory bandwidth. This pitch proposes an off-by-default diagnostic group that warns when reorderin…
