# multi_buffer: Pre-allocate IDs when editing \(\#36819\) · gitcafe/zed

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

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

Visibility: public

Requested revision: dd6fce6d4eafdc6b2463e28af029a3e92b41e39f

Requested commit: dd6fce6d4eafdc6b2463e28af029a3e92b41e39f

Commit: dd6fce6d4eafdc6b2463e28af029a3e92b41e39f

Tree: 255abeb1260a2131085f2900fb8a95ce7c7fe80a

Author: tidely

Committer: GitHub

## Message

```
multi_buffer: Pre-allocate IDs when editing (#36819)

Something I came across when looking at `edit_internal`. Potentially
saves multiple re-allocations on an edit

Release Notes:

- N/A
```

## Parents

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

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