# Use a \`SumTree\` as the backing storage of \`UndoMap\` · gitcafe/zed

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

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

Visibility: public

Requested revision: e17627b07d0d088e20bba6085ce7d4353844c3ae

Requested commit: e17627b07d0d088e20bba6085ce7d4353844c3ae

Commit: e17627b07d0d088e20bba6085ce7d4353844c3ae

Tree: c3d27fa8e37119391530c549b807c66842830b79

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Use a `SumTree` as the backing storage of `UndoMap`

This makes it cheap to clone and avoids slowdowns when there the undo
history is long.

```

## Parents

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

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