# text: Speed up \`offset_for_anchor\` and \`fragment_id_for_anchor\` conversions \(\#46989\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d092f3a41bf11225c5e9651feca955e970f54a39

Requested commit: d092f3a41bf11225c5e9651feca955e970f54a39

Commit: d092f3a41bf11225c5e9651feca955e970f54a39

Tree: d8ef0156d86e099d182537e80c07aedfd02ea36d

Author: Lukas Wirth

Committer: GitHub

## Message

```
text: Speed up `offset_for_anchor` and `fragment_id_for_anchor` conversions (#46989)

And most importantly, speed `Anchor::cmp` by doing so.

Release Notes:

- N/A *or* Added/Fixed/Improved ...
```

## Parents

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

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