Skip to content

Improve Zed's startup time - #65170

Merged
SomeoneToIgnore merged 3 commits into
mainfrom
kb/better-startup-time-1
Oct 5, 2026
Merged

SomeoneToIgnore merged 3 commits into
mainfrom
kb/better-startup-time-1

Conversation

@SomeoneToIgnore

@SomeoneToIgnore SomeoneToIgnore commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

First commit:

Avoid process enumeration during macOS startup
Read the real UID with getuid() instead of enumerating processes.
Keep the channel offsets, UID wrapping, and handshake unchanged.

Measurements (warm macOS launches):

  • Time to presentation: median 525 ms -> 479 ms over 30 paired launches (release-fast).

Second commit:

Reduce startup work and redraw before window reveal
Skip redundant settings recomputation, migration formatting, and colour-scale construction.
Request a redraw of hidden macOS windows before revealing them.

Measurements (warm macOS launches):

  • Startup work, time to selected presentation: paired median reductions of 7.5 ms and 10.7 ms in two runs of 30 pairs.
  • Window reveal, time to first captured text: paired median reduction of 18.4 ms over 30 pairs.

Release Notes:

  • Slightly improved Zed's startup time in general case
  • [GPUI] N/A

Read the real UID with getuid() instead of enumerating processes.
Keep the channel offsets, UID wrapping, and handshake unchanged.

Measurements (warm macOS launches):

- Time to presentation: median 525 ms -> 479 ms over 30 paired launches (release-fast).
Skip redundant settings recomputation, migration formatting, and colour-scale construction.
Request a redraw of hidden macOS windows before revealing them.

Measurements (warm macOS launches):

- Startup work, time to selected presentation: paired median reductions of 7.5 ms and 10.7 ms in two runs of 30 pairs.
- Window reveal, time to first captured text: paired median reduction of 18.4 ms over 30 pairs.
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Oct 5, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Oct 5, 2026
Comment thread crates/gpui_macos/src/window.rs Outdated
@SomeoneToIgnore
SomeoneToIgnore added this pull request to the merge queue Oct 5, 2026
Merged via the queue into main with commit 285d975 Oct 5, 2026
36 checks passed
@SomeoneToIgnore
SomeoneToIgnore deleted the kb/better-startup-time-1 branch October 5, 2026 20:36
Artur-Galstyan pushed a commit to Artur-Galstyan/hzed that referenced this pull request Oct 5, 2026
…es#65206)

This PR makes Cargo happy, which keeps wanting to remove the redundant
nix version qualifier from Cargo.lock introduced in zed-industries#65170.

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants