# Avoid the cost of creating an anyhow error in RelPath::strip_prefix \(\#44444\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 45829b33805a45f6edc9d13fcd3806933b9a91e8

Requested commit: 45829b33805a45f6edc9d13fcd3806933b9a91e8

Commit: 45829b33805a45f6edc9d13fcd3806933b9a91e8

Tree: 624460e2d1fce8f29369c04f12ba425f61131837

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Avoid the cost of creating an anyhow error in RelPath::strip_prefix (#44444)

Release Notes:

- Fixed a performance bottleneck that could delay Zed's processing FS
events for a long time in some cases.
```

## Parents

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

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