Optimal stored property packing

If you (or someone else reading) is interested in exploring this, another form of layout optimization we'd like to do is to use spare bits to pack Bool and small enum fields, like we do with multi-payload enum tags already. This would allow something like struct Foo { var x: SomeClass; var y: Bool } to fit in a single word.

2 Likes