Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS startup time is so slow #6205

Closed
1 task done
vizh opened this issue Jul 10, 2023 · 53 comments · Fixed by #4047
Closed
1 task done

MacOS startup time is so slow #6205

vizh opened this issue Jul 10, 2023 · 53 comments · Fixed by #4047
Labels
defect [core label] font Font feedback for readability, size, style, etc performance Feedback for performance issues, speed, memory usage, etc

Comments

@vizh
Copy link

vizh commented Jul 10, 2023

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

The promotional materials on the website suggest that the startup time of Sublime and Zed should be practically the same. However, in reality, Sublime starts almost instantly, while Zed takes around 4-5 seconds to display its window. This refers to a clean installation without any additional settings.

Environment

Zed: v0.93.4 (stable)
OS: macOS 13.4.1
Memory: 32 GiB
Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

Screen.Recording.2023-07-10.at.22.24.07.mov

Recorded a video showing the difference in speed between running Zed and Sublime.

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

Zed.log

@vizh vizh added admin read Pending admin review defect [core label] triage Maintainer needs to classify the issue labels Jul 10, 2023
@JosephTLyons JosephTLyons added performance Feedback for performance issues, speed, memory usage, etc and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Jul 10, 2023
@osiewicz
Copy link
Contributor

osiewicz commented Jul 10, 2023

Is the startup time slow with copilot disabled too? Based on the logs you've provided the request seems to be timing out.

@vizh
Copy link
Author

vizh commented Jul 10, 2023

Is the startup time slow with copilot disabled too? Based on the logs you've provided the request seems to be timing out.

This is a clean installation. No configuration after being copied to the applications directory on a system where it was not previously installed. I checked just now, Copilot is turned off.

Disabling all network interfaces did not speed up the startup process. When no network interfaces are available, any connection attempt is instantly terminated without any waiting period.

@jansol
Copy link
Contributor

jansol commented Jul 22, 2023

Hmm, what buffer font have you set in your config? I managed to get very slow startup times with specific fonts in #4695

@vizh
Copy link
Author

vizh commented Jul 23, 2023

Hmm, what buffer font have you set in your config? I managed to get very slow startup times with specific fonts in #4695

You're right! Just removed Iosevka from config and problem was gone. This Issue is duplicate of #4695!

@iamnbutler
Copy link
Member

Hmm, what buffer font have you set in your config? I managed to get very slow startup times with specific fonts in #4695

You're right! Just removed Iosevka from config and problem was gone. This Issue is duplicate of #4695!

I've said this in other places, but Iosevka is MASSIVE. Honestly, outside of something that is preloaded like it is in Zed I really wouldn't recommend using it without subsetting the font to something smaller... It has hundreds of thousands of character glyphs in it by default, resulting in truly a massive font size (go compare the font size of a single weight of Iosevka to almost any other font, its 10x+ larger 😬)

@jansol
Copy link
Contributor

jansol commented Jul 23, 2023

I've said this in other places, but Iosevka is MASSIVE.

I take it this refers specifically to it having way more control points per glyph than it needs rather than the number of glyphs? Since the problem does not occur with Arial Unicode MS (ships with macOS by default AFAIK).

@vizh
Copy link
Author

vizh commented Jul 23, 2023

It's interesting that I use this font everywhere, and I haven't noticed any software running slower with it. I can only assume that the font rendering or loading method using in Zed differs from the one used other software in MacOS. It would be odd to describe in the documentation for a programming editor which fonts are desirable or undesirable to use.

Thank you for the tip on trimming the font to only the used set of characters. I will give it a try as a temporary solution.

@JosephTLyons JosephTLyons added the font Font feedback for readability, size, style, etc label Jul 24, 2023
@iamnbutler
Copy link
Member

It's interesting that I use this font everywhere, and I haven't noticed any software running slower with it. I can only assume that the font rendering or loading method using in Zed differs from the one used other software in MacOS. It would be odd to describe in the documentation for a programming editor which fonts are desirable or undesirable to use.

Thank you for the tip on trimming the font to only the used set of characters. I will give it a try as a temporary solution.

Yeah, on our side we will need to see what is causing this. It's been an ongoing issue, but oddly has only showed up with this font.

@vizh
Copy link
Author

vizh commented Jul 24, 2023

Yeah, on our side we will need to see what is causing this. It's been an ongoing issue, but oddly has only showed up with this font.

If any debugging or other assistance is required from my end, I will be glad to help.

@mdogan
Copy link

mdogan commented Aug 10, 2023

I observe the similar slow startup times on macos with Zed 0.98.2. This is the same for a few recent versions too. It was very fast a few weeks ago.

Two subsequent startup times are:

mdogan:$ time zed

real	0m4.536s
user	0m0.021s
sys	0m0.017s
mdogan:$ time zed

real	0m4.531s
user	0m0.021s
sys	0m0.016s

User level settings.json is empty, nothing customized.

osiewicz referenced this issue Jan 15, 2024
Details are in zed-industries/font-kit#1; We're
not doing anything too fancy, really. Still, you should mostly see font
loading times drop significantly for font collections
Release Notes:
- Improved loading performance of large font collections (e.g. Iosevka).
Fixes https://github.com/zed-industries/community/issues/1745,
https://github.com/zed-industries/community/issues/246


https://github.com/zed-industries/zed/assets/24362066/f70edbad-ded6-4c12-9c6d-7a487f330a1b
@JosephTLyons
Copy link
Contributor

This should be fixed in v0.119.9-pre - please reopen if the issue persists.

@JosephTLyons JosephTLyons transferred this issue from zed-industries/community Jan 24, 2024
@evrensen467
Copy link
Contributor

This should be fixed in v0.119.9-pre - please reopen if the issue persists.
@JosephTLyons

This issue persists for me, it takes about a good 9 seconds for zed to launch the first time, my settings are pretty much untouched:

{
  "telemetry": {
    "metrics": false,
    "diagnostics": false
  },
  "ui_font_size": 16,
  "buffer_font_size": 16
}

logs:

2024-02-13T21:30:04+01:00 [INFO] ========== starting zed ==========
2024-02-13T21:30:04+01:00 [INFO] Opening main db
2024-02-13T21:30:04+01:00 [ERROR] crates/zed/src/zed.rs:519: EOF while parsing a value at line 1 column 0
2024-02-13T21:30:04+01:00 [INFO] Opening main db
2024-02-13T21:30:04+01:00 [ERROR] crates/zed/src/main.rs:887: reading themes from "/Users/evrsen/.config/zed/themes"

Caused by:
    No such file or directory (os error 2)
2024-02-13T21:30:04+01:00 [INFO] build git repository ".git"
2024-02-13T21:30:04+01:00 [INFO] set status on client 0: Authenticating
2024-02-13T21:30:04+01:00 [INFO] Opening main db
2024-02-13T21:30:04+01:00 [INFO] set status on client 84057: Connecting
2024-02-13T21:30:04+01:00 [INFO] Opening main db
2024-02-13T21:30:04+01:00 [ERROR] crates/workspace/src/persistence/model.rs:257: No worktree for path: "/Users/evrsen/.config/zed/settings.json"
2024-02-13T21:30:04+01:00 [INFO] set environment variables from shell:/bin/zsh, path:/opt/homebrew/opt/node@20/bin:/Users/evrsen/.pyenv/shims:/Library/Frameworks/Python.framework/Versions/3.12/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Users/evrsen/.cargo/bin:/Users/evrsen/Library/Application Support/JetBrains/Toolbox/scripts:/Users/evrsen/.local/bin
2024-02-13T21:30:04+01:00 [INFO] build git repository "crates/live_kit_server/protocol/.git"
2024-02-13T21:30:04+01:00 [INFO] Node runtime install_if_needed
2024-02-13T21:30:04+01:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-02-13T21:30:05+01:00 [INFO] add connection to peer
2024-02-13T21:30:05+01:00 [INFO] waiting for server hello
2024-02-13T21:30:05+01:00 [INFO] got server hello
2024-02-13T21:30:05+01:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 331, id: 58383 })
2024-02-13T21:30:05+01:00 [INFO] set status on client 84057: Connected { peer_id: PeerId { owner_id: 331, id: 58383 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-02-13T21:30:07+01:00 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-02-13T20:30:07.694Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-02-13T20:30:07.694Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-02-13T21:30:07+01:00 [INFO] 0 unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "472a6347-669f-489c-af99-a383128e6738",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-02-13T21:30:07+01:00 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-02-13T20:30:07.705Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-02-13T20:30:07.705Z]",
  "extra": [
    "Telemetry initialized"
  ]
}

I'm on Zed 0.121.7 on Sonoma 14.2.1

@widersky
Copy link

widersky commented Feb 14, 2024

In my case, Zed Preview (0.122.2) starts about 6-7 seconds. My settings:

{
  "show_copilot_suggestions": true,
  "terminal": {
    "dock": "bottom"
  },
  "project_panel": {
    "dock": "right",
    "folder_icons": false
  },
  "toolbar": {
    "breadcrumbs": false,
    "quick_actions": false
  },
  "vertical_scroll_margin": 10,
  "buffer_font_family": "Fira Code",
  "buffer_font_size": 12,
  "ui_font_family": "Inter",
  "ui_font_size": 15,
  "theme": "One Dark",
  "autosave": "off",
  "format_on_save": "off",
  "buffer_line_height": "comfortable",
  "tab_size": 2,
  "confirm_quit": true,
  "show_whitespaces": "all",
  "wrap_guides": [100],
  "features": {
    "copilot": true
  },
  "tabs": {
    "close_position": "left",
    "git_status": true
  },
  "assistant": {
  }
}

And logs:

2024-02-14T06:03:20+01:00 [INFO] ========== starting zed ==========
2024-02-14T06:03:20+01:00 [INFO] Opening main db
2024-02-14T06:03:20+01:00 [ERROR] crates/zed/src/zed.rs:519: EOF while parsing a value at line 2 column 0
2024-02-14T06:03:20+01:00 [INFO] Opening main db
2024-02-14T06:03:20+01:00 [INFO] build git repository ".git"
2024-02-14T06:03:20+01:00 [INFO] set status on client 0: Authenticating
2024-02-14T06:03:20+01:00 [INFO] Opening main db
2024-02-14T06:03:20+01:00 [INFO] set status on client 57407: Connecting
2024-02-14T06:03:20+01:00 [INFO] Initializing default prettier with plugins {"prettier-plugin-tailwindcss"}
2024-02-14T06:03:20+01:00 [INFO] starting language server "vscode-css-language-server", path: "/Users/adrianwiderski/Web/Freelance/lefiola", id: 1
2024-02-14T06:03:20+01:00 [INFO] starting language server "tailwindcss-language-server", path: "/Users/adrianwiderski/Web/Freelance/lefiola", id: 2
2024-02-14T06:03:20+01:00 [ERROR] crates/workspace/src/persistence/model.rs:257: No worktree for path: "/Users/adrianwiderski/.config/zed/settings.json"
2024-02-14T06:03:20+01:00 [WARN] Skipping path "/Users/adrianwiderski/Web/Freelance/lefiola" that has no prettier dependency and no workspaces section in its package.json
2024-02-14T06:03:20+01:00 [INFO] Node runtime install_if_needed
2024-02-14T06:03:20+01:00 [INFO] starting language server "intelephense", path: "/Users/adrianwiderski/Web/Freelance/lefiola", id: 3
2024-02-14T06:03:21+01:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-02-14T06:03:21+01:00 [INFO] set environment variables from shell:/bin/zsh, path:/Users/adrianwiderski/Library/Application Support/Herd/bin/:/opt/homebrew/sbin:/Users/adrianwiderski/.nvm/versions/node/v18.18.2/bin:/Users/adrianwiderski/.pyenv/shims:/Applications/MAMP/bin/php/php8.2.0/bin:/opt/homebrew/bin:/usr/local/bin:/Users/adrianwiderski/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/adrianwiderski/.cargo/bin:/Users/adrianwiderski/Library/Application Support/JetBrains/Toolbox/scripts:/Users/adrianwiderski/.orbstack/bin:/Users/adrianwiderski/node_modules/.bin:./node_modules/.bin:/Users/adrianwiderski/Dev/flutter/bin:/Users/adrianwiderski/.pub-cache/bin
2024-02-14T06:03:22+01:00 [INFO] add connection to peer
2024-02-14T06:03:22+01:00 [INFO] waiting for server hello
2024-02-14T06:03:22+01:00 [INFO] got server hello
2024-02-14T06:03:22+01:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 332, id: 101092 })
2024-02-14T06:03:22+01:00 [INFO] set status on client 57407: Connected { peer_id: PeerId { owner_id: 332, id: 101092 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-02-14T06:03:22+01:00 [INFO] Node runtime install_if_needed
2024-02-14T06:03:22+01:00 [INFO] Node runtime install_if_needed
2024-02-14T06:03:23+01:00 [INFO] Node runtime install_if_needed
2024-02-14T06:03:23+01:00 [INFO] Node runtime install_if_needed
2024-02-14T06:03:23+01:00 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-02-14T05:03:23.306Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-02-14T05:03:23.306Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-02-14T06:03:23+01:00 [INFO] 0 unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "23fd8cf2-2332-4945-a62b-967de341f06c",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-02-14T06:03:23+01:00 [INFO] Fetching default prettier and plugins: [("prettier-plugin-tailwindcss", "0.5.11"), ("prettier", "3.2.5")]
2024-02-14T06:03:23+01:00 [INFO] Node runtime install_if_needed
2024-02-14T06:03:23+01:00 [INFO] Node runtime install_if_needed
2024-02-14T06:03:23+01:00 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-02-14T05:03:23.706Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-02-14T05:03:23.706Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-02-14T06:03:24+01:00 [INFO] Node runtime install_if_needed
2024-02-14T06:03:24+01:00 [INFO] Node runtime install_if_needed
2024-02-14T06:03:24+01:00 [INFO] 3 unhandled notification window/logMessage:
{
  "type": 3,
  "message": "Initialising intelephense 1.9.5"
}
2024-02-14T06:03:24+01:00 [INFO] 3 unhandled notification window/logMessage:
{
  "type": 3,
  "message": "Reading state from /var/folders/_c/q1j2ztdn359f_8k81cv6y8rr0000gn/T/intelephense/4ee18c4c."
}
2024-02-14T06:03:24+01:00 [INFO] 3 unhandled notification window/logMessage:
{
  "type": 3,
  "message": "Initialised in 5 ms"
}
2024-02-14T06:03:24+01:00 [INFO] 3 unhandled notification indexingStarted:
[
  null
]
2024-02-14T06:03:24+01:00 [INFO] 1 unhandled notification workspace/diagnostic/refresh:
null
2024-02-14T06:03:25+01:00 [INFO] Node runtime install_if_needed
2024-02-14T06:03:26+01:00 [INFO] 2 unhandled notification window/logMessage:
{
  "type": 4,
  "message": "[Global] Creating projects: []"
}
2024-02-14T06:03:28+01:00 [INFO] 3 unhandled notification indexingEnded:
[
  null
]
2024-02-14T06:03:39+01:00 [INFO] Initialized prettier with plugins: {"prettier-plugin-tailwindcss"}

System specs:

Zed: v0.122.2 (Zed Preview)
OS: macOS 14.3.1
Memory: 16 GiB
Architecture: aarch64

@steezeburger
Copy link

steezeburger commented Feb 20, 2024

Also slow startup time on MacOS M1 Sonoma 14.2.1 (23C71) and Zed 0.122.2

{
  "base_keymap": "JetBrains",
  "theme": "Solarized Light",
  "buffer_font_size": 15,
  "autosave": "on_focus_change",
  "terminal": {
    "shell": {
      "program": "zsh"
    }
  },
  // disable ligatures
  "buffer_font_features": {
    "calt": false
  }
}

@mrnugget
Copy link
Member

This should probably be fixed by #7775

@NicoAdrian
Copy link

Just to add more info regarding this problem:

In my case, the startup time takes 6-7 seconds if I didn't launch it recently (So not the first after reboot).

I don't have any heavy font configured, Copilot is disabled:

{
  "features": {
    "copilot": false
  },
  "theme": "One Dark",
  "ui_font_size": 15,
  "buffer_font_size": 15,
  "soft_wrap": "editor_width",
  "language_overrides": {
    "Python": {
      "enable_language_server": true,
      "format_on_save": "on",
      "formatter": {
        "external": {
          "command": "black",
          "arguments": [
            "-",
            "-l",
            "120"
          ]
        }
      }
    }
  }
}

@mrnugget
Copy link
Member

@NicoAdrian which version?

@NicoAdrian
Copy link

@mrnugget 0.123.2

@mrnugget
Copy link
Member

Ohh, good eyes, @evrsen! Yes, the fix is only in 0.124.0-pre, so that should probably fix it, @NicoAdrian!

@evrensen467
Copy link
Contributor

evrensen467 commented Feb 24, 2024

Slow startup times are still happening for me on Zed Preview 0.124.1 , even taking longer than before? solid 10-12 seconds.

evrsen@Evrens-MacBook-Air ~ % ls -l@ /Applications/Zed\ Preview.app 
total 0
drwxr-xr-x@ 9 evrsen  staff  288 Feb 23 20:00 Contents
	com.apple.provenance	 11 
	com.apple.quarantine	 57

Edit: Updated to Zed Preview 0.124.4 and it's taking about 6-7 seconds now:

evrsen@Evrens-MacBook-Air ~ % time zed
zed  0.02s user 0.01s system 0% cpu 6.373 total

@widersky
Copy link

Can confirm that nothing changed here too - v0.124.4. Startup takes 6-7 seconds.

@NicoAdrian
Copy link

Same, the pre-release doesn't change anything. I know it's probably not your fault (if it's the root cause @mrnugget said), but it's pretty annoying for an editor that supposed to be blazing fast (it is indeed when I relaunch the app after a slow startup). Will be using vscode and good old vim until a permanent fix is released.

@mrnugget
Copy link
Member

100%. I hear you. We'll need to look into this again.

@hamza72x
Copy link
Contributor

For me: It's 3/4x faster than VSCode.

zed-speed.mp4

@widersky
Copy link

@mrnugget In my case, it doesn't look like it depends on a fresh startup of the Mac - I usually just put it to sleep, and yet most of the time when I start Zed, I wait 6-7 seconds.

@evrensen467
Copy link
Contributor

@hamza72x the issue many of us have is that zed's startup time is slow in the first launch after the os is booted, not after.

@hamza72x
Copy link
Contributor

@evrsen That's sad to hear.

To test out, I have restarted both of my mac (m1 + m1 pro).

And opened Zed with spotlight.
It was instant as previous video. 🤷🏻‍♂️

@evrensen467
Copy link
Contributor

Interesting, can you share your Zed version and macOS version? Could you also run the command below in Terminal.app and show us the output?

ls -l@ /Applications/Zed.app 

Might help the Zed team debug this problem.

@NicoAdrian
Copy link

@hamza72x the issue many of us have is that zed's startup time is slow in the first launch after the os is booted, not after.

When you close Zed, do you use CMD+Q or just click on the red cross in the up left corner of the app ?

@hamza72x
Copy link
Contributor

hamza72x commented Feb 26, 2024

@evrsen Did you mean? ls -la? (-l@ is un-recognized arg)

ls -la /Applications/Zed.app

drwxr-xr-x nix  staff  96 B  Sat Feb 24 00:20:49 2024  .
drwxrwxr-x root admin 2.0 KB Sun Feb 25 14:09:08 2024  ..
drwxr-xr-x nix  staff 288 B  Sat Feb 24 00:23:45 2024  Contents

@NicoAdrian CMD+Q

@hamza72x
Copy link
Contributor

@evrsen

Zed 0.123.6
macOS 14.3.1 (23D60)

@NicoAdrian
Copy link

NicoAdrian commented Feb 26, 2024

@evrsen Did you mean? ls -la? (-l@ is un-recognized arg)

ls -la /Applications/Zed.app

drwxr-xr-x nix  staff  96 B  Sat Feb 24 00:20:49 2024  .
drwxrwxr-x root admin 2.0 KB Sun Feb 25 14:09:08 2024  ..
drwxr-xr-x nix  staff 288 B  Sat Feb 24 00:23:45 2024  Contents

@NicoAdrian CMD+Q

No, use the macOS native Terminal.app, not Iterm or another

@evrensen467
Copy link
Contributor

@evrsen Did you mean? ls -la? (-l@ is un-recognized arg)

No, it's ls -l@. Like mrnugget mentioned, I think that command only works in Terminal.app and not other terminal emulators. Make sure you're running it in Terminal.app (the default terminal that comes with macOS)

@hamza72x
Copy link
Contributor

@evrsen
Got it, it requires bash, I was using zsh.
Here is the result:

image

@evrensen467
Copy link
Contributor

evrensen467 commented Feb 26, 2024

@evrsen Got it, it requires bash, I was using zsh. Here is the result:

image

Thank you, ok now this is very interesting, I believe we previously thought apple putting Zed in quarantine because of some stapling issue was the cause of the slow startup time, I think you just confirmed that this isn't the case.? @mrnugget

@mrnugget
Copy link
Member

Yeah, that's the tricky part. For me it is instant, but I also have quarantine in there.

@NicoAdrian
Copy link

Yeah, that's the tricky part. For me it is instant, but I also have quarantine in there.

Instant in every case ? After reboot ? After not launching it for a long time (hours for ex) ?
What's your specs/OS ?

@mrnugget
Copy link
Member

Instant in every case ?

I don't think so, but it's hard to nail down. I've certainly had slow starts since the last fix shipped, but I cannot confidently say that these were independent of "zed just updated".

macOS Sonoma 14.2

@NicoAdrian
Copy link

So @mrnugget, will it eventually be fixed in the future ? When Apple decides to "trust" this app ?

@mrnugget
Copy link
Member

Can you reliably reproduce it? That's the hard part, because I can't.

@NicoAdrian
Copy link

Yes I do. After reboot AND after I haven't launch Zed after a long time.

@mrnugget
Copy link
Member

I updated all Zed versions I have and then rebooted twice.

Both times I could observe the same thing:

  • Zed.app takes ~5 "bounces" in the Dock until it appears
  • Zed Nightly.app takes ~5 "bounces" in the Dock until it appears
  • Zed Preview.app appears immediately

Now I'm wondering

  1. Is there anything different in how we sign Preview? I'm 99% sure there isn't
  2. Did I install Preview differently? i.e. did I maybe wipe it completely after we merged the fixed and then reinstall from clean slate?

The quarantine status is the same for all 3:

~ φ ls -l@ /Applications/Zed.app
total 0
drwxr-xr-x@ 9 thorstenball  staff  288 Mar 24 17:41 Contents
	com.apple.provenance	 11 
	com.apple.quarantine	 21 



~ φ ls -l@ /Applications/Zed\ Preview.app
total 0
drwxr-xr-x@ 9 thorstenball  staff  288 Mar 21 04:29 Contents
	com.apple.provenance	 11 
	com.apple.quarantine	 21 



~ φ ls -l@ /Applications/Zed\ Nightly.app
total 0
drwxr-xr-x@ 9 thorstenball  staff  288 Mar 23 06:48 Contents
	com.apple.provenance	 11 
	com.apple.quarantine	 21 

@NicoAdrian
Copy link

NicoAdrian commented Apr 9, 2024

@mrnugget In this thread or another I don't remember, someone fixed the .dmg file because it was not signed or something like that.

I don't know if it's related but I wondered if uninstalling Zed and redownloading it from your website (so to get the new .dmg file) would fix the problem and apparently it does ! I haven't had any slow startup since.

@osiewicz
Copy link
Contributor

osiewicz commented Apr 9, 2024

@NicoAdrian that's probably #8671

@mrnugget
Copy link
Member

mrnugget commented Apr 9, 2024

I don't know if it's related but I wondered if uninstalling Zed and redownloading it from your website (so to get the new .dmg file) would fix the problem and apparently it does ! I haven't had any slow startup since.

Well, that's a requirement for all of the fixes that we discussed in this thread too :)

So you're saying that complete uninstall and reinstall fixed it, yes? If so: great! happy to hear it!

@NicoAdrian
Copy link

I don't know if it's related but I wondered if uninstalling Zed and redownloading it from your website (so to get the new .dmg file) would fix the problem and apparently it does ! I haven't had any slow startup since.

Well, that's a requirement for all of the fixes that we discussed in this thread too :)

So you're saying that complete uninstall and reinstall fixed it, yes? If so: great! happy to hear it!

Yea it's fixed for me. If it's the right thing to do (uninstalling then reinstall), then the problem won't be fixed for everyone who already have the non signed version ?

@mrnugget
Copy link
Member

mrnugget commented Apr 9, 2024

If it's the right thing to do (uninstalling then reinstall), then the problem won't be fixed for everyone who already have the non signed version ?

Yeah, I'm not sure whether we can fix that to be honest, haven't looked into our auto-updater too much yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] font Font feedback for readability, size, style, etc performance Feedback for performance issues, speed, memory usage, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.