zed/crates/theme_extension
Kirill Bulatov 6110aa61e1
Improve icon handling on startup (#65173)
## First commit

Preload initial project panel icons before drawing
Preload the initial project panel icons through the asset cache.

Measurements (warm macOS launches):

- Time to complete Catppuccin Frappe icons: reductions of 4.0 ms and
16.2 ms in two runs of 10 pairs.
- Time to first nonblack captured frame: increases of 16.6 ms and 2.3
ms; all 16 icons were present in every candidate launch.

## Second commit

Reuse unchanged icon families during startup instead of loading them
twice.
Reuse icon families with unchanged source bytes and paths until
extensions finish loading.
Include file paths in theme-read errors.

Measurements (warm macOS launches):

- Time to first captured complete Catppuccin Frappe icons: paired median
reductions of 6.2 ms and 5.0 ms in two runs of 10 pairs.
- Capture gaps in the repeat run reached 216.7 ms.


Release Notes:

- Improved startup time when custom icons are used
2026-10-07 14:58:00 +00:00
..
src Improve icon handling on startup (#65173) 2026-10-07 14:58:00 +00:00
Cargo.toml
LICENSE-GPL