# Improve startup time \(\#4248\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4665b9afb675a9591677e88ac54b9ab6b57ab022

Requested commit: 4665b9afb675a9591677e88ac54b9ab6b57ab022

Commit: 4665b9afb675a9591677e88ac54b9ab6b57ab022

Tree: 5849843dbe3e62661ea4051fa579e2e1708a3f86

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Improve startup time (#4248)

Since our last measurements, startup time in Zed had regressed quite
significantly. This was due to several issues:

- We were loading IBMPlex, which we're not really using in the UI.
- Images were being parsed in the foreground, thus blocking the main
thread
- Language models (for semantic index and assistant) were being loaded
in the foreground, thus blocking the main thread
- Interaction with the keychain was blocking the main thread

In addition to these, with this pull request we will now deserialize the
items for a pane in parallel, as opposed to doing so sequentially.

All combined, when running the zed binary directly this brings startup
time from ~350ms to ~210ms on my machine.

Release Notes:

- Improved startup time.
```

## Parents

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

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

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