[swift-evolution] Padding structs
jgroff at apple.com
Tue Jan 19 12:53:23 CST 2016
> On Jan 19, 2016, at 10:51 AM, Alexandre Lopoukhine via swift-evolution <swift-evolution at swift.org> wrote:
> Hello everyone,
> I have a question about structs in Swift. Is there a reason for the padding? Is there a plan to remove it, to make a more compact representation, making them similar to structs in C?
What are you referring to in particular? We do plan to change Swift's default layout strategy to minimize padding, but it's surprising that there are cases today where Swift structs have more padding than equivalent C structs.
More information about the swift-evolution