# relpaths: Fix repeated usages of RelPath::unix on static paths \(\#39675\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3bec8855361774e6e593801e85ecf56e2c4cc02c

Requested commit: 3bec8855361774e6e593801e85ecf56e2c4cc02c

Commit: 3bec8855361774e6e593801e85ecf56e2c4cc02c

Tree: 7d0def7fb9eb6c3ad6ebf13722e2dd0c26c0dfc4

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
relpaths: Fix repeated usages of RelPath::unix on static paths (#39675)

- **paths: Cache away results of static construction of RelPath**
- **agent: Cache away results of converting rules file names into
relpaths**

This PR fixed a regression from relpath PR where we've started doing
more work when working with static (Rel-)Paths.

Release Notes:

- N/A
```

## Parents

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

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