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.

Improve startup time #3673

Closed
Closed

Description

@benogle

Status: This is an ongoing effort.

Via @kevinsawicki

The current plan is to investigate what is slow on startup, optimize it, and then investigate concatenating all the CoffeeScript requires to save eval time on startup.

Merged Changes

Times below are were taken with a Macbook Pro on OS X 10.8.5 with 2.6 Ghz Intel Core i7 processors and 16 GB of memory

Activity

  1. YurySolovyov commented on Oct 1, 2014

    @YurySolovyov

    You can also take a look at electron/electron#251, maybe you can get some speed there.

  2. ilanbiala commented on Oct 2, 2014

    @ilanbiala

    Looks really awesome so far. Are these changes available in the latest releases of Atom, or are they only going to be available in 1.0?

  3. winstliu commented on Oct 2, 2014

    @winstliu
    Contributor

    The listed changes have already been merged, and I'm pretty sure they're all in 0.133.0.

  4. kevinsawicki commented on Oct 2, 2014

    @kevinsawicki
    Contributor

    Yup, they are all in the latest release

  5. kevinsawicki commented on Oct 6, 2014

    @kevinsawicki
    Contributor

    Moving this back to on-deck since nothing specific to this issue is being worked on this week.

  6. tjfwalker commented on Oct 24, 2014

    @tjfwalker

    Startup-time is my biggest and only serious gripe with Atom. All improvements are much appreciated.

  7. backspaces commented on Oct 24, 2014

    @backspaces

    You may want to look at fast.js. Many parts of coffeescript use push where direct assignment is faster when the array size is known. In array comprehensions without an "if" conditional, the final array is known and should fast.js techniques.

  8. kevinsawicki commented on Oct 24, 2014

    @kevinsawicki
    Contributor

    @backspaces Thanks for the tip, looking into fast.js

  9. 34 remaining items

  10. jpxd commented on Aug 19, 2015

    @jpxd

    Async package loading would be really great!
    On some packages I try to cheat at the activation time by adding a timeout and executing the activation code 5 seconds later to shorten the time until I see the editor window. I would love If one could specify when the package has to be loaded and activated in the package.json in cases where activationCommands are not an option.

    E.g.
    sync loading before editor is shown or
    async loading in the background after the editor is ready and already shown to the user.

  11. lethevimlet commented on Nov 10, 2015

    @lethevimlet

    As a quick fix atom editor should have a background service like chrome does, this a simple solution that should work even with lots of packages and improve the experience on non SSD owners. Service mode could have an enable/disable option for people who might be short on RAM, but now days a small service running in the background shouldn't be an issue for any hardware. This doesn't mean startup improvement efforts should be halted, nevertheless atom as a service should be a option no matter the startup time.

    I think atom is awesome, and js (and friends) as the GUI is a perfect choice, with all the promised "hackability" and beauty only achievable by a cornucopia of options, but IMO most user, including me will be drawback by the current startup speed ~4s.

    A text editor, no matter how many cool things it has, will fail as a text editor if startup time is >1s simply because the experience is not acceptable compared to other native apps, this fact won't pass unnoticed to most people, but once again its just my constructive opinion.

  12. benogle commented on Nov 10, 2015

    @benogle
    ContributorAuthor

    IMO most user, including me will be drawback by the current startup speed ~4s.

    Note that there are a few huge speedups coming up in the next couple versions of atom:

    Startup speed is @as-cii's full time focus right now. He is finding and improving things weekly, so keep an eye out for new stuff!

  13. lethevimlet commented on Nov 10, 2015

    @lethevimlet

    Great!, looking forward to it, nice work.

  14. tomByrer commented on Jan 8, 2016

    @tomByrer

    When measuring speed, might want to factor in Chrome's garbage collection services.

  15. ilanbiala commented on Mar 30, 2016

    @ilanbiala

    @benogle any update on this?

  16. passeride commented on Dec 9, 2016

    @passeride
    Contributor

    Suggestion: i have disabled some packages for faster startup, now if i could toggle them from the Shift+Ctrl P menu, that would be a great addition for me (But not as default tho), also would it be possible for a deamon to keep it running in background?

  17. Tzrlk commented on Mar 8, 2017

    @Tzrlk

    Any thoughts on incorporating something like #4293 to get the editor displaying faster up-front? Or adding an option on the plugins to delay their startup?

    Additionally, have you thought about using something like http://rollupjs.org/ for tree-shaking? Certainly running a tree-shake, minify and bundle as a runtime cache per combination of plugins should get subsequent load times up a bit?

  18. winstliu commented on Mar 8, 2017

    @winstliu
    Contributor

    We are actively working on this in #13949, #13940, #13916, and other PRs.

  19. stale commented on Mar 8, 2018

    @stale

    Thanks for your contribution!

    This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:

    1. Verify that you can still reproduce the issue in the latest version of Atom
    2. Comment that the issue is still reproducible and include:
      • What version of Atom you reproduced the issue on
      • What OS and version you reproduced the issue on
      • What steps you followed to reproduce the issue

    Issues that are labeled as triaged will not be automatically marked as stale.

  20. lock commented on Sep 18, 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!

  21. locked as resolved and limited conversation to collaborators on Sep 18, 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