# wasm: Use free-lists for unused locals · gitcafe/zig

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

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

Visibility: public

Requested revision: 7e6dbd63989ed4f62b9d12fb03119b0bec1bda84

Requested commit: 7e6dbd63989ed4f62b9d12fb03119b0bec1bda84

Commit: 7e6dbd63989ed4f62b9d12fb03119b0bec1bda84

Tree: 34879076ce73fcaa855d990a33498e8aca1c5250

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: Use free-lists for unused locals

When a local is no longer needed (for instance, it was used as
a temporary during arithmetic), it can be appended to one of
the typed freelists. This allows us to re-use locals and therefore
require less locals, reducing the binary size, as well as runtime
initialization.

```

## Parents

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

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