# Load JSON themes \(\#6893\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5f1dcb76feb51e0e786662f856607d95b40afcce

Requested commit: 5f1dcb76feb51e0e786662f856607d95b40afcce

Commit: 5f1dcb76feb51e0e786662f856607d95b40afcce

Tree: 1bcb3d3377045a1bd4885ec6e31d01cc45354a1d

Author: Marshall Bowers

Committer: GitHub

## Message

```
Load JSON themes (#6893)

This PR changes the theme loading to use the JSON themes bundled with
the binary rather then the Rust theme definitions.

### Performance

I profiled this using `cargo run --release` to see what the speed
differences would be now that we're deserializing JSON:

**Before:** `ThemeRegistry::load_user_themes` took 16.656666ms
**After:** `ThemeRegistry::load_user_themes` took 18.784875ms

It's slightly slower, but not by much. There is probably some work we
could do here to bring down the theme loading time in general.

Release Notes:

- N/A
```

## Parents

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

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