Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
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

Closed

Description

@jimtryon

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?

screenshot 2015-11-02 20 06 00

Activity

  1. keplersj commented on Nov 3, 2015

    @keplersj

    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.

  2. benogle commented on Nov 4, 2015

    @benogle
    Contributor

    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.

  3. jimtryon commented on Nov 4, 2015

    @jimtryon
    Author

    atom screenshot

    atom file screenshot 2015-11-03 20 14 52

    dock screenshot

  4. jimtryon commented on Nov 4, 2015

    @jimtryon
    Author

    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.

  5. thomasjo commented on Nov 4, 2015

    @thomasjo
    Contributor

    @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).

  6. jimtryon commented on Nov 4, 2015

    @jimtryon
    Author

    atom screenshot

    It did take longer when I just type atom to launch Atom.

  7. thomasjo commented on Nov 4, 2015

    @thomasjo
    Contributor

    @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.

  8. benogle commented on Nov 4, 2015

    @benogle
    Contributor

    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:

    1. open one window with one file and the the tree view open
    2. quit
    3. type atom
    4. note the startup time
    5. quit
    6. type atom
    7. note the startup time
    8. quit
    9. open from the dock
    10. note the startup time
    11. quit
    12. open from the dock
    13. note the startup time
    14. quit
    15. open from the dock
    16. note the startup time
    17. quit
    18. type atom . in the directory for the one window that was open
    19. note the startup time
    20. quit
    21. type atom . in the directory for the one window that was open
    22. note the startup time
    23. quit
    24. type atom . in the directory for the one window that was open
    25. note the startup time
    26. quit
  9. twz915 commented on Jan 14, 2016

    @twz915

    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.

  10. Mauin commented on Sep 6, 2016

    @Mauin

    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)

  11. jiayihu commented on Nov 6, 2016

    @jiayihu

    I'm having the same issue with Atom v1.11.2 and macOS Sierra 10.12.1:
    schermata 2016-11-06 alle 13 27 01
    schermata 2016-11-06 alle 13 27 20

    The first screenshot is with atom ., whereas the second is with Atom launched from Dock

  12. winstliu commented on Nov 6, 2016

    @winstliu
    Contributor

    @nathansobo I thought this was fixed in 1.11?

  13. thomasjo commented on Nov 6, 2016

    @thomasjo
    Contributor

    @50Wliu Correct, #12540 shipped in 1.11.

  14. jiayihu commented on Nov 6, 2016

    @jiayihu

    @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.

  15. nathansobo commented on Nov 9, 2016

    @nathansobo
    Contributor

    @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.

  16. jiayihu commented on Nov 9, 2016

    @jiayihu

    @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.

  17. nathansobo commented on Nov 11, 2016

    @nathansobo
    Contributor

    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

  18. nathansobo commented on Nov 11, 2016

    @nathansobo
    Contributor

    This should be fixed in 1.12.2 by making shelling out for the environment asynchronous and giving it a 5 second timeout.

  19. lock commented on Apr 4, 2018

    @lock

    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!

  20. locked and limited conversation to collaborators on Apr 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions