You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
freeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesinstall-updateVS Code installation and upgrade system issuesmacosIssues with VS Code on MAC/OS Xunder-discussionIssue is under discussion for relevance, priority, approach
Thanks, ignore the severe hang event that is misleading (process has already exited by that point). Following screenshot is better overview of the problem
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,
Restore asar support for node_modules, this should drastically reduce the number of I/O operations
Could we delay deleteOwnedBundleAtURL to be performed after the launch via the new shipIt instance, would require sharing bundle location via ShipItState.plist
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
freeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesinstall-updateVS Code installation and upgrade system issuesmacosIssues with VS Code on MAC/OS Xunder-discussionIssue is under discussion for relevance, priority, approach
Activity
deepak1556 commentedon Oct 3, 2025
Can you capture a cpu profile following the steps here,
Time ProfilerNB: record and share the version information of VSCode before and after the update
ulugbekna commentedon Oct 3, 2025
Robo (@deepak1556) sent an email. hopefully this's helpful because I see severe hangs in the profile
deepak1556 commentedon Oct 3, 2025
Thanks, ignore the
severe hangevent that is misleading (process has already exited by that point). Following screenshot is better overview of the problemElectron 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 45827andElectron 56855is 16s out of which 14s are spent inShipIt 48226If you look at the thread view of
ShipIt 48226it 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)
deepak1556 commentedon Oct 3, 2025
Some ideas to try from top of my mind,
deleteOwnedBundleAtURLto be performed after the launch via the new shipIt instance, would require sharing bundle location viaShipItState.plist[-]Restarting vscode to update takes 20 seconds on m1 pro macbook[/-][+]Slow update times on macOS[/+]deepak1556 commentedon Oct 23, 2025
Following is the first build with asar support re-enabled
There is a clear improvement on the update times, from 16s we are down to 8s
ulugbekna commentedon Aug 3, 2026
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
deepak1556 commentedon Nov 19, 2026
With
"update.enableEarlyStaging": trueexp in latest insiders, time to restart has halved from 15s to 6.9s. Shipit work between restarts reduced from 14s to 3.6s