# Cache last used layer_id for StackingOrder · gitcafe/zed

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

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

Visibility: public

Requested revision: bf843e213100e28a03aa92d40630541a6498b9eb

Requested commit: bf843e213100e28a03aa92d40630541a6498b9eb

Commit: bf843e213100e28a03aa92d40630541a6498b9eb

Tree: 13108d8e572da8a5546c895dea7488bf0523edc4

Author: Thorsten Ball

Committer: Thorsten Ball

## Message

```
Cache last used layer_id for StackingOrder

This optimizes rendering time by saving computation of the layer_id and
comparison when inserting it into the `BTreeMaps`.

Co-authored-by: Antonio <antonio@zed.dev>

```

## Parents

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

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