# rope: Preallocate chunks buffer · gitcafe/zed

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

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

Visibility: public

Requested revision: 45c4d35da89e78bfb33c8aed8c26836026e09289

Requested commit: 45c4d35da89e78bfb33c8aed8c26836026e09289

Commit: 45c4d35da89e78bfb33c8aed8c26836026e09289

Tree: 633e85c9e5148faf1cd5e48995dbbd0a1c425196

Author: Piotr Osiewicz

Committer: Piotr Osiewicz

## Message

```
rope: Preallocate chunks buffer

This commit also specializes 'fn push' for large text quantities. That specialized version uses a Vec instead of SmallVec.
This commit shaves off about ~100ms out of 800ms when loading a 600Mb text buffer.

```

## Parents

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

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