# zlog: Implement better scope map \(\#27408\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ffa736e566e9a28dc3cfff60dfc469de0e5a83b2

Requested commit: ffa736e566e9a28dc3cfff60dfc469de0e5a83b2

Commit: ffa736e566e9a28dc3cfff60dfc469de0e5a83b2

Tree: 0ab6826646fafa776e41d12bb9021f7d44d74c4b

Author: Ben Kunkle

Committer: GitHub

## Message

```
zlog: Implement better scope map (#27408)

Another step towards having `zlog` as the default logging solution in
Zed.
The new ScopeMap replaces the previous HashMap based implementation used
for scope lookups to:

A. Reduce complexity
B. Increase speed at which non-enabled logs can be filtered out
C. Provide more granular control over how scopes are determined to be
enabled/disabled,
   and what caching/other speed increase opportunities are available

Release Notes:

- N/A
```

## Parents

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

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