# chore: Enable full LTO \(\#2548\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 572c59eec4225c790f98597ad4255d880aa98793

Requested commit: 572c59eec4225c790f98597ad4255d880aa98793

Commit: 572c59eec4225c790f98597ad4255d880aa98793

Tree: a052476494168919f5462b1b2446c6ee981be64c

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
chore: Enable full LTO (#2548)

Per conversation with Antonio, I've suggested enabling full LTO; right
now we use a crate-local ThinLTO, which does not inline function calls
across crates.

| Configuration    | Current main (788f97e) | Thin LTO  | Full LTO  |
|------------------|------------------------|-----------|-----------|
| Size in bytes    | 158806721              | 155868753 | 111115553 |
| % of `main` size | 100%                   | 98.14%    | 69.96%    |
| Size in bytes (no debug info) | 129186657 | 127942929 | 108281345 |
```

## Parents

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

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