15 ms·
Atom: Editor window startup is slow
- andyfleming 12y agoThis is the reason I stopped using Atom. It seems great but the performance was terrible, especially next to sublime.
- nclzz 12y agoSame for me, Sublime is faster and that give you an awesome sensation. I used Atom for a couple of weeks three months ago, i stopped the same moment i reopened Sublime.
- hartror 12y agoThe best comment is batjko's about how Atom is stuck in no mans land between text editor and IDE. One you expect to open near instantly, the other you'd forgive for a few minutes of loading. https://github.com/atom/atom/issues/2654#issuecomment-50137294 https://github.com/atom/atom/issues/2654#issuecomment-501372...
- colinramsay 12y agoBut comparing it to Textmate and Sublime is entirely fair, and both of those (as per the comments in the thread) are faster.
- rattray 12y agoAgreed. Atom seems intended to be a drop-in replacement for Sublime. I tried it out again a week or so ago and found it almost at parity. The speed issue mentioned here is one of the biggest reasons I went back to the closed-source Sublime.
- jibsen 12y agoThe speed, and the text rendering for me. Sublime renders the fonts I use better, and it supports bitmap fonts, which I am still fond of.
- micampe 12y agoI don't use Atom so I can't compare directly, but from those comments even Xcode sounds faster.
- bhouston 12y agoEven though I am a sublime user for some tasks I still use Visual Studio. I have to say that Visual Studio actually has a very fast start-up time -- thus it is a bit of a myth that IDEs have to start slow. I just ran 2008 and 2012 and the second time they load (I prewarmed the caches), they load in about 1 second. With a cold cache 2008 takes 2 seconds although 2012 seems to take 15 seconds (which is slow.) (Tested on a fairly high end machine, you results may differ.)
- maccard 12y agoI opened 2012 and 2013 and they're almost instant on my machine(high end machine). Opening my main solution for work is roughly 3minutes on same machine, which would be nice if it could be done faster, but that's not going to happen I suppose.
- bhouston 12y agoWhoa, 3 minutes? Is that also from an SSD? Our primary C++ solution in VS (CMake generated) has 35 projects and somewhere between 500 to 1000 source files and it only takes about 10 seconds to open.
- chriswarbo 12y ago> the other you'd forgive for a few minutes of loading. No I wouldn't. What features do IDEs have which makes "a few minutes" a forgivable startup time (which I'll arbitrarily define as "time until key presses cause characters to show up on screen") Especially in a world where Web apps are "slow" if they take a few seconds to load, and a bunch of work is going into replacing OS init systems to get their boot times under 10 seconds. I didn't forgive Eclipse and Netbeans for their slugishness and bloat (they're the only programs I've seen with progress bars for exiting!). I've since switched to Emacs, which straddles the divide between text-editor, IDE and operating system. Even loaded with extensions, written in LISP, running in a single thread, it loads in a few seconds.
- apalmer 12y agoI think his point is that if you were the type of developer who uses an IDE, you are willing to accept the slow start up time. You clearly are not willing to deal with that, and as such are not ever going to be happy. Some tools take a while to warm up, use them or don't.
- dagw 12y agoAs a regular IDE user (Visual Studio, PyCharm, WebStorm) there is no way I would forgive a few minutes loading time. Of the IDEs I use PyCharm is the slowest at perhaps 15-20 seconds to start up, and I consider that barely acceptable. Had it not been such a great product once started up I doubt I'd be as forgiving about its start up time as I am.
- StavrosK 12y agoI am the type of developer who uses an IDE. The problem is that I would usually get my work done in Vim while waiting for the IDE to load. After a few instances of finding myself working in Vim with Eclipse loaded and idle in the background, I just stopped opening Eclipse altogether.
- chriswarbo 12y ago> You clearly are not willing to deal with that, and as such are not ever going to be happy. I'm pretty happy in Emacs. I'm not happy with false dichotomies, like this features/speed tradeoff. There is a real tradeoff to be made between those, but nowhere near the level I've seen in IDEs. Many problems seem to depend on the way modules/extensions are implemented. For example, we could implement plugins by allowing event listeners which can run arbitrary, imperative code. However, this leads to redundant computation (multiple "get(foo);" and "set(foo, bar)" calls spread across listeners), increases the chance of plugins conflicting due to race conditions, requiring very conservative scheduling, etc. An alternative, like a hook/advice system, would have the core performing gets/sets exactly when they're needed, but give plugins the ability to override the return values using hooks (like a dynamic form of decorators). This avoids the redundancy, race conditions and scheduling issues.
- Igglyboo 12y agoI completely agree, atom takes about 2s to open on my machine and it drives me insane. IntelliJ on the other hand takes about 15-30s, depending on the size of the project, to open and it doesn't bother me at all. Maybe because IntelliJ in my mind is a full fledged IDE and atom is not, it also has a splash screen which helps in my opinion. EDIT: I'm on a brand new macbook pro with 16gb ram and a 512gb ssd and it takes 2 seconds. It takes about 10 seconds on my old chromebook.
- treehau5 12y agoI would check into that startup time for Intellij -- I am similarly on a brand new macbook pro (16gb ram, ssd) and my largest project takes a few seconds tops. Only the maven auto-importer has ever slowed me down to ~10 seconds, but by then the editor was fully loaded. OK I see your edit now
- venomsnake 12y agoIntelliJ, VS and even Eclipse load in under 5s.
- jongold 12y agoBut still no acknowledgement that on Retina MBPs it spins up fans and uses >100% CPU?
- lookingsideways 12y agoI had this issue with older versions but I've been using Atom as my primary editor on a rMBP for the last couple of months with no CPU usage issues.
- oe 12y agoWorks on my machine. Maybe you have some bad plugin?
- grandalf 12y agoworks fine for me.
- skrebbel 12y agoI really don't understand the problem. If your concentration span is that short, what are you doing writing software professionally? How often do you start up an editor per day? If the editor offers tools that save you more time than that, you won. It's like refusing to use a chainsaw instead of a handsaw because it's a 2 minute walk to get it. EDIT: I talked before my turn. I thought this was just about initial startup, but apparently it's about each editor window. Thanks schrodinger.
- schrodinger 12y agoHave you used it? It's not just start up that's slow, it every time you open a new window. So if you go to type a git commit message, 5 second lag until it shows up. Double click a text file (after atom is already open), 5 seconds. If it was just the initial startup, I'd be compelled to agree with you.
- skrebbel 12y agoAdmittedly I have not. I stand corrected.
- wiremine 12y ago> How often do you start up an editor per day? That's what I came here to mention. I've been using Atom as my primary editor for a month or so now, and I've never noticed the slowness. After I read this post, I did a test: Launching a file when the editor isn't in memory: > atom filename.js This takes around 4 seconds on my Mac Air. Launching a file when the editor is in memory: > atom filename2.js This second one takes < 1 second. I could see the OP having a point if the _second_ version was taking a while: this would be the equivalent of opening a new browser tab in 4 seconds. But opening an entire browser in < 1 second? I don't really expect that on my mac.
- riquito 12y agoYour metaphor isn't really accurate. Atom is not a browser, is a glorified notepad. The fact that internally it uses VP8 or anything else doesn't matter (neither should) to the user. The user expect it to open in the blink of an eye, no matter what, and it can be done for this kind of program as alternatives in the same league show. If it isn't possible at all with the underlying technology, that was a bad technological choice. However I wouldn't worry so soon, there is a lot of space to optimize, the project is young.
- tosh 12y agoI wonder what they could do to work around this hypothetically (ignoring whether it is a valid priority or how hard it would be). Would it be possible to immediately 'show' something (ideally the content of the file) until the whole editor/browser runtime starts up?
- bhouston 12y agoHave a hidden atom loaded and all initialized and then fork it for each new window -- then it is all preloaded and ready to go. :) Might be a bit tricky to get a unique environment each time, but then add an init function to do that. Or have an on computer startup process (yuck), that basically warms the atom cache for you. I know Microsoft Office does this or did this.
- mosselman 12y agoAtom is just too sluggish for day to day use.
- keerthiko 12y ago3 things made me drop Atom: 1. The slow startup time in question 2. The huge editor software file size. I am not leaving 400mb for "yet another text editor" 3. I had become very dependent on some Sublime plugins for my work and the Atom counterparts were a long ways off being up to par. The thing that first made me excited about atom was that being built around Chromium I thought we could finally have an editor with a nice Chrome-like web view with real-time update built into it, as a tab or something. However, I noticed a thread on it in Atom (can't find it now), and it sounded like the core of Atom's security prevented such a thing from ever being built, so it would remain an unfulfilled desire. Oh well.
- rplnt 12y agoYeah, the size was staggering. And prebuilt packages for one platform (now two)? Haven't even tried it...
- sagichmal 12y ago> 2. The huge editor software file size. I am not leaving > 400mb for "yet another text editor" I don't know why you'd care about this, besides reasons of dogmatic principle. Disk is the cheapest thing in the world. Any benefit that can be had at the cost of larger artifact size, especially for things like consumer applications, should be taken, IMO.
- Fastidious 12y agoIt adds up. More and more applications are that fat. My system drive is 1 TB, and I am a point in which I need to judge which application is worthy of taking space. I agree that 400 MB for an editor is a tad too much.
- thedufer 12y ago400 MB costs less than 2 cents. Is it really worth your time and energy to worry about disk space when you could double the space on your machine for $50?
- knowaveragejoe 12y agoAfter trying Atom, I was thrilled with the concepts I was seeing. That said, I've been waiting for it to mature a bit before using it full time. Based on these comments it looks like it might be a while longer.
- kachnuv_ocasek 12y agoWhy is this on the front page? It's a well known fact and I wouldn't expect much from an alpha-stage software (premature optimization, etc.).
- theCricketer 12y agoMaybe I'm a noob, but its such a nice conversation. Real interest to improve a product. And a busy engineer taking time to help onboard the new comer to the Atom project. Pretty cool IMO.
- ceejayoz 12y agoMaking it usable isn't "premature optimization".
- icefox 12y agoIt really depends on your expectation. Back when I created the Arora browser (2008) one common complaint was how starting up a new browser (firefox,ie,safari) took so long so no one should have cared about the startup speed. But as a developer I cared because I was also a user and regularly kept the load time under a second and much more closer to 100ms (with Qt in memory). As you approach commodity status (like browsers were back then) load times are one of the easy things that cause you to lose users. It was a pretty basic optimization problem. Defer loading of assets that are not needed, tricks like showing something to the user even if they can't actually interact with it for another 15ms, removing expensive computation that can occur seconds/minutes later (does the disk cache really need to check for expired stuff right now on startup?) This was regularly tested with a "big data" such as a large disk cache, a history measured in years, etc. After those architectural decisions were made then it was basic profiling and fixing hotspots, improving algorithms and going beyond my application I went through and fixing issues in underlying libraries such as in Qt where I made fixes which not only improved my startup time, but every single Qt application. Startup speed matters, sometimes a lot, sometimes not so much. It is both interesting because optimizations are a common problem in our field and the different approaches that can be taken are interesting to discuss, but it is also interesting taking a look at how this particular project cares about startup speed and what they have decided to prioritize over it (the social / project management aspect).
- grandalf 12y agoIn my opinion, if you're starting atom more than a handful of times per day you're using it incorrectly. Try nano instead!
- colinramsay 12y agoAnd that's just your opinion. Other people, myself included, use their editor in a different way and slow startup time is an important consideration.
- erikb 12y agoEven that could be handled, by the editor getting out of your way when you don't need it. I'm not an expert, neither in Atom, nor software design on that level, but I suppose a web based editor could have a server running in the background, doing the hard work, and a lightweight client that starts up fast. And there might be a million other ways to allow people fast start-close-interactions without actually starting or closing the software all the time. Therefore saying that you should use a software in a certain way is not really a good argument. It's possible to adapt the software to the user.
- deleted 12y ago[deleted]
- snarfy 12y agoI just installed it for the first time, opened a few files and it seemed OK, then I read the comments here. Next I tried rearranging the tabs around and it took seconds? for the drop of the drag-n-drop motion to register. This is why I lol about everything being re-invented in the browser and rewritten in javascript. Just because you can doesn't mean you should.
- kclay 12y agoCouldn't they do what IntelliJ does and spin off some threads to handle the work in the background ?
- jeffreyrogers 12y agoThe problem is really its architecture rather than its implementation. The only way to fix the performance aspects of Atom (slugishness, RAM and CPU usage) is to start over and redesign it from a perspective of performance.
- ianstallings 12y agoI leave it open for this reason. But honestly most of my more robust editors are slightly slow to start and I keep them running if I think I'll need them. If I need super quick and light I fall back to vim.
- croddin 12y agoDeveloping on fast computers with SSDs can increase productivity, but I wonder if during some development phases of some apps, you should use a slower computer to "dogfood" on.
- Dolimiter 12y agoThis was always going to happen, Atom was always doomed to fail. Why was that technology stack used to develop Atom? A browser window to render a text editor? If Atom wanted to take over the world, it should have chosen a technology stack that made it run AT LEAST as quick as Sublime Text. Instead we got Eclipse. Therefore, it's never going to get traction outside a niche. LESSON LEARNED: Choose a technology stack that benefits the end user, not one that suits the developer of the software.
- lobster_johnson 12y agoAtom's tech stack choice is interesting. I have had several Mac app projects in mind where I really desired something more lightweight and webby than Objective-C, and toyed with the idea of using Node-Webkit or Atom Shell. But I have always put it off: - The performance challenges are daunting. For complicated, heavily data-oriented UIs like Atom's that require low latency and efficient memory usage, it's nowhere close to native. - I'm growing increasingly tired of dynamically typed languages. What I want is to be able to implement native GUI code in a fast, statically typed language (ObjC is fine for this); and then write high-level logic in a scripting-type language. But: - The divide between native (ie., the shell) code and app code is very hard. Atom Shell actually relies on a special IPC mechanism to let the JS code talk to the native shell, and all the IPC calls have to implemented manually [1]. Surprisingly, there isn't anything like MacRuby/RubyMotion's Cocoa bridge. I'm intimately familiar with ObjC/Cocoa, and it's a great language and framework, but I feel like as UI framework go, it's a bit antiquated; the "amount of code to productive, visible UI effect" ratio is very high. Way too little of my code ends up being actual app code, and way too much ends up being non-reusable, hand-coded, pixel-perfect-tuned logic to handle things like reshuffling UI components with animation. As a former Delphi developer, it's amazing to me that GUI development is actually harder today than it was in 1998. Just look at Shoes [2] for how simple a UI framework could be. It's not something I would/could use myself, but it certainly gets a bunch of things right. [1] https://github.com/atom/atom-shell/blob/master/atom/browser/lib/rpc-server.coffee https://github.com/atom/atom-shell/blob/master/atom/browser/... [2] http://shoesrb.com http://shoesrb.com
- wldcordeiro 12y agoThe other issue I have with Atom that really bothers me is its text rendering. I can not understand why a font that is usable and readable in Sublime Text at 13pt is terrible in Atom. I have to have my fonts set to 3-4pt higher than what I use in Sublime.
- wnevets 12y agoIts slowness is what has stopped me from even considering dropping sublime. Hopefully once it hits beta it will be alot faster.
- ackalker 12y agoThis is a snippet of email I sent to a friend just a few days ago. Besides the slow startup, I think these numbers speak for themselves...: $ sudo ps_mem Private + Shared = RAM used Program [...] 412.0 KiB + 137.5 KiB = 549.5 KiB vi [...] 12.2 MiB + 2.7 MiB = 14.9 MiB gvim [...] 968.9 MiB + 94.3 MiB = 1.0 GiB atom (7) That's with no file loaded in any of the editors, gvim brimming with plugins, Atom freshly installed. Sad, really.