# Sema: automatically optimize order of struct fields · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/342bae02d86d9bd9f2db6ae9489021bab28595ae)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 342bae02d86d9bd9f2db6ae9489021bab28595ae

Requested commit: 342bae02d86d9bd9f2db6ae9489021bab28595ae

Commit: 342bae02d86d9bd9f2db6ae9489021bab28595ae

Tree: 8b50d7cffff029c135a17295c4c324603d2358b1

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

```
Sema: automatically optimize order of struct fields

This is a simple starting version of the optimization described in #168
where the fields are just sorted by order of descending alignment.

```

## Parents

- [31a2b8c3642f1240a70d78203d568051d4dbcd3f](https://git.cafe/gitcafe/zig/commit/31a2b8c3642f1240a70d78203d568051d4dbcd3f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/342bae02d86d9bd9f2db6ae9489021bab28595ae?format=markdown)
