# Use \`FxHashMap\` and \`FxHashSet\` in hot code paths · gitcafe/zed

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

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

Visibility: public

Requested revision: b871f906d6f303053b654b7c5ff3e32efe8758d8

Requested commit: b871f906d6f303053b654b7c5ff3e32efe8758d8

Commit: b871f906d6f303053b654b7c5ff3e32efe8758d8

Tree: 05212c1d271568111b46e0dedeb6d7a95f753410

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Use `FxHashMap` and `FxHashSet` in hot code paths

We can also use these maps and sets in place of `SeaHasher` because
they are also deterministic. Note that we're not swapping std's
`HashMap` and `HashSet` wholesale inside of `collections` because
on the server we need cryptographically secure collections.

```

## Parents

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

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