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
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Slow start up time launching from Dock or Mission Control #9406
I noticed that when I launch Atom from my applications that the loading time is significantly longer than if I use the command line. I'm running a 2014 MacBook Pro.
I've attached a screen shot of Time Cop showing several packages that have added milliseconds to the load time. Is there any way to speed up Atom without having to disable packages as I use many of the packages on a regular basis?
I'd like to add that we discovered this when looking at Linter Provider Loading Times in #linter on the Atom Slack. It seems to me that this is another issue from launching Atom using the OS X application bundle directly, rather than from the command line.
In my testing right now on master, there is no difference in speed between launching from the dock, atom, or atom ..
How many windows is it launching? What does timecop say when launching via atom and atom . on the command line? Try to have it open the same windows in all cases.
The first screenshot is when I ran atom and passed it a file from the command line. The second screenshot is when I did atom . and the last screenshot is the time it took launching it from dock.
@jimtryon It would be great if you could also just type atom as @benogle requested, since that will launch Atom in the same manner as via Dock or Launchpad. Passing it a file or the current directory are essentially the same (perhaps even identical).
@jimtryon Thanks for that! Seems like there's some additional overhead taking place when deserializing the previous project state. Not really sure why it's this significant though. Hmm.
There will be fluctuation, and it depends on how many windows + what is open in those windows. Try it a few times with exactly the same configuration. Like:
open one window with one file and the the tree view open
quit
type atom
note the startup time
quit
type atom
note the startup time
quit
open from the dock
note the startup time
quit
open from the dock
note the startup time
quit
open from the dock
note the startup time
quit
type atom . in the directory for the one window that was open
note the startup time
quit
type atom . in the directory for the one window that was open
note the startup time
quit
type atom . in the directory for the one window that was open
Sublime text 3 is much faster than atom. when I open a file, I want to modify it quickly, but Atom keeps me waiting too long. I like Atom and I think it may be much faster to load the text and show at first , and then highlight the code and load plugins.
Similarly to this: My Atom startup time (current 1.11.0-beta3) when launching from the Dock takes >60s. Opening Atom via command line both with atom-beta and atom-beta --safe takes <1s.
I've had this behavior for quite some time just recently started using Atom again to give it another go. Everything is up to date with only one community package installed (intellij-idea-keymap)
@50Wliu this issue seems a bit different though, because I'm having the opposite problem. Opening Atom from CLI is okay, whereas from Dock takes several seconds.
@thomasjo @50Wliu Yeah I can confirm that the issue @jiayihu is describing differs from the App Nap problem that was delaying launches from the CLI. @jiayihu when launching in these two scenarios, is Atom running already in either case or are both cold-starts?
@ungb when you get a chance, maybe you could see if you can reproduce this timing difference between launching from the Dock and other modes? It's very odd to me that launching via the Dock would take longer than any other approach.
@nathansobo Both cold starts, if you mean that Atom is closed, but the screenshots are taken after several times I tried quitting and opening the editor with the same project.
Figured this out. There was a change to shell out to retrieve environment variables... unfortunately the action is performed synchronously which is blocking startup. We'll fix this. Sorry.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
keplersj commentedon Nov 3, 2015
I'd like to add that we discovered this when looking at Linter Provider Loading Times in #linter on the Atom Slack. It seems to me that this is another issue from launching Atom using the OS X application bundle directly, rather than from the command line.
benogle commentedon Nov 4, 2015
In my testing right now on master, there is no difference in speed between launching from the dock,
atom, oratom ..How many windows is it launching? What does timecop say when launching via
atomandatom .on the command line? Try to have it open the same windows in all cases.jimtryon commentedon Nov 4, 2015
jimtryon commentedon Nov 4, 2015
The first screenshot is when I ran atom and passed it a file from the command line. The second screenshot is when I did atom . and the last screenshot is the time it took launching it from dock.
thomasjo commentedon Nov 4, 2015
@jimtryon It would be great if you could also just type
atomas @benogle requested, since that will launch Atom in the same manner as via Dock or Launchpad. Passing it a file or the current directory are essentially the same (perhaps even identical).jimtryon commentedon Nov 4, 2015
It did take longer when I just type atom to launch Atom.
thomasjo commentedon Nov 4, 2015
@jimtryon Thanks for that! Seems like there's some additional overhead taking place when deserializing the previous project state. Not really sure why it's this significant though. Hmm.
benogle commentedon Nov 4, 2015
There will be fluctuation, and it depends on how many windows + what is open in those windows. Try it a few times with exactly the same configuration. Like:
atomatomatom .in the directory for the one window that was openatom .in the directory for the one window that was openatom .in the directory for the one window that was opentwz915 commentedon Jan 14, 2016
Sublime text 3 is much faster than atom. when I open a file, I want to modify it quickly, but Atom keeps me waiting too long. I like Atom and I think it may be much faster to load the text and show at first , and then highlight the code and load plugins.
Mauin commentedon Sep 6, 2016
Similarly to this: My Atom startup time (current 1.11.0-beta3) when launching from the Dock takes >60s. Opening Atom via command line both with
atom-betaandatom-beta --safetakes <1s.I've had this behavior for quite some time just recently started using Atom again to give it another go. Everything is up to date with only one community package installed (intellij-idea-keymap)
jiayihu commentedon Nov 6, 2016
I'm having the same issue with Atom v1.11.2 and macOS Sierra 10.12.1:


The first screenshot is with
atom ., whereas the second is with Atom launched from Dockwinstliu commentedon Nov 6, 2016
@nathansobo I thought this was fixed in 1.11?
thomasjo commentedon Nov 6, 2016
@50Wliu Correct, #12540 shipped in 1.11.
jiayihu commentedon Nov 6, 2016
@50Wliu this issue seems a bit different though, because I'm having the opposite problem. Opening Atom from CLI is okay, whereas from Dock takes several seconds.
nathansobo commentedon Nov 9, 2016
@thomasjo @50Wliu Yeah I can confirm that the issue @jiayihu is describing differs from the App Nap problem that was delaying launches from the CLI. @jiayihu when launching in these two scenarios, is Atom running already in either case or are both cold-starts?
@ungb when you get a chance, maybe you could see if you can reproduce this timing difference between launching from the Dock and other modes? It's very odd to me that launching via the Dock would take longer than any other approach.
jiayihu commentedon Nov 9, 2016
@nathansobo Both cold starts, if you mean that Atom is closed, but the screenshots are taken after several times I tried quitting and opening the editor with the same project.
nathansobo commentedon Nov 11, 2016
Figured this out. There was a change to shell out to retrieve environment variables... unfortunately the action is performed synchronously which is blocking startup. We'll fix this. Sorry.
/cc @joefitzgerald
nathansobo commentedon Nov 11, 2016
This should be fixed in 1.12.2 by making shelling out for the environment asynchronous and giving it a 5 second timeout.
lock commentedon Apr 4, 2018
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!