# Reduce LLVM IR bloat one last time \(\#63882\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/20fa2fa80949e94b6eecb48c8a46fbf32b82f1fc)

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

Visibility: public

Requested revision: 20fa2fa80949e94b6eecb48c8a46fbf32b82f1fc

Requested commit: 20fa2fa80949e94b6eecb48c8a46fbf32b82f1fc

Commit: 20fa2fa80949e94b6eecb48c8a46fbf32b82f1fc

Tree: 3ac05a611580e18c54cb7e2e1abe38792e36ba07

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Reduce LLVM IR bloat one last time (#63882)

I think this is the final attempt of mine to do anything about the
binary size, as those fixes become relatively intricate and I like them
less and less.

Each commit has its own improvement stats and mainly reduce generic-code
duplication through shared non-generic helpers and `#[inline(never)]`
boundaries.

Total reduction stats:

With sccache disabled, `cargo clean` and `cargo build --release -p zed`:
Before: zed binary 396716472 bytes
After: zed binary 359416504 bytes (-9.40%, -37.29MB)

Release Notes:

- N/A

---------

Co-authored-by: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>
```

## Parents

- [63d15474c721581d942851ae42254309aaabd8f5](https://git.cafe/gitcafe/zed/commit/63d15474c721581d942851ae42254309aaabd8f5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/20fa2fa80949e94b6eecb48c8a46fbf32b82f1fc?format=markdown)
