# editor/language: hoist out non-generic parts of edit functions\. \(\#3130\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cc335db9e0e7ce677591d544140760ed8c080eec

Requested commit: cc335db9e0e7ce677591d544140760ed8c080eec

Commit: cc335db9e0e7ce677591d544140760ed8c080eec

Tree: b750a57d7005090a50dabc92c44f3908ec53d342

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
editor/language: hoist out non-generic parts of edit functions. (#3130)

This reduces LLVM IR size of editor (that's one of the heaviest crates
to build) by almost 5%.

LLVM IR size of `editor` before this PR: 3280386
LLVM IR size with `editor::edit` changed: 3227092
LLVM IR size with `editor::edit` and `language::edit` changed: 3146807

Release Notes:
- N/A
```

## Parents

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

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