Skip to content

Slow update times on macOS #269500

Description

Restarting vscode to update takes >20 seconds on my quite beefy machine. I wonder if we can do something about this.

Zed takes 5 seconds to restart with an update. Cursor also seems faster than 20 seconds.

Version: 1.105.0-insider
Commit: 80e4249
Date: 2025-10-02T05:02:23.402Z
Electron: 37.5.1
ElectronBuildId: 12409799
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0

Activity

  1. deepak1556 commented on Oct 3, 2025

    @deepak1556
    Collaborator

    Can you capture a cpu profile following the steps here,

    1. Launch Instruments.app and choose Time Profiler
    2. Match the settings as per the attached screenshot, ensure target is set to all processes
    3. Start recording, perform the update flow, once the update has finished, save and share the trace at [email protected]

    NB: record and share the version information of VSCode before and after the update

    Image
  2. added
    freeze-slow-crash-leak
    install-update
    macos
    under-discussion
    on Oct 3, 2025
  3. ulugbekna commented on Oct 3, 2025

    @ulugbekna
    ContributorAuthor

    Robo (@deepak1556) sent an email. hopefully this's helpful because I see severe hangs in the profile

    Image
  4. deepak1556 commented on Oct 3, 2025

    @deepak1556
    Collaborator

    Thanks, ignore the severe hang event that is misleading (process has already exited by that point). Following screenshot is better overview of the problem

    Image

    Electron 45827 - main process initiating the update
    ShipIt 48226 - updater executable of 45827 (responsible for performing move, rename, verification of new update bundle)
    Electron 56855 - main process of new instance after the update
    ShipIt 56854 - updater executable of 56855 (responsible for launching the new instance)

    The period between Electron 45827 and Electron 56855 is 16s out of which 14s are spent in ShipIt 48226

    If you look at the thread view of ShipIt 48226 it gives insight into how the 14s is split,

    5s - copyBundleAtURL
    2s - clearQuarantineForDirectory
    5s - verifyBundleAtURL
    2s - deleteOwnedBundleAtURL

    All of these are raw file operations that require enumerating the bundle contents which is impacted by our bundle size (400MB)

  5. deepak1556 commented on Oct 3, 2025

    @deepak1556
    Collaborator

    Some ideas to try from top of my mind,

    1. Restore asar support for node_modules, this should drastically reduce the number of I/O operations
    2. Could we delay deleteOwnedBundleAtURL to be performed after the launch via the new shipIt instance, would require sharing bundle location via ShipItState.plist
  6. changed the title [-]Restarting vscode to update takes 20 seconds on m1 pro macbook[/-] [+]Slow update times on macOS[/+] on Oct 3, 2025
  7. deepak1556 commented on Oct 23, 2025

    @deepak1556
    Collaborator

    Following is the first build with asar support re-enabled

    Version: 1.106.0-insider
    Commit: 08221e77c3e6f1eb810eb0219d3abe72caf1b37e
    Date: 2025-10-23T12:15:28.971Z
    Electron: 37.7.0
    ElectronBuildId: 12597478
    Chromium: 138.0.7204.251
    Node.js: 22.20.0
    V8: 13.8.258.32-electron.0
    OS: Darwin arm64 25.1.0
    

    There is a clear improvement on the update times, from 16s we are down to 8s

    Image
  8. added
    unreleased
    on Jul 7, 2026
  9. added this to the 1.129.0 milestone on Jul 7, 2026
  10. added
    insiders-released
    and removed
    unreleased
    on Jul 7, 2026
  11. removed
    insiders-released
    on Aug 3, 2026
  12. ulugbekna commented on Aug 3, 2026

    @ulugbekna
    ContributorAuthor

    Hi Robo (@deepak1556) !

    I'm on latest Insiders and the update times are very long. I will share the profiler run results next time I update

    Version: 1.132.0-insider (Universal)
    Commit: 5918810
    Date: 2026-08-03T11:26:58+02:00
    Electron: 42.7.1
    ElectronBuildId: 14760073
    Chromium: 148.0.7778.280
    Node.js: 24.18.0
    V8: 14.8.178.38-electron.0
    OS: Darwin arm64 25.5.0

  13. deepak1556 commented on Nov 19, 2026

    @deepak1556
    Collaborator

    With "update.enableEarlyStaging": true exp in latest insiders, time to restart has halved from 15s to 6.9s. Shipit work between restarts reduced from 14s to 3.6s

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

Metadata

Metadata

Labels

freeze-slow-crash-leakinstall-updatemacosunder-discussion

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions