Live data from Hacker News

Sublime Text vs. Visual Studio Code vs. Atom Performance Test (Dec 2016)

blog.xinhong.me

21–26 of 26 posts

Re: Sublime Text vs. Visual Studio Code vs. Atom Performance Test (Dec 2016)

#21
post #2

It's exactly what you would expect. But are VS Code and Atom fast enough to be useable? I didn't think so before a year or more back), but I think so now.

I find that the electron/node based apps tend to work acceptably when you're running on SSD, otherwise the startup is much slower. But I've been very happy with VS Code for well over a year now... much happier than my experience with Brackets and Atom at the time. And imho it's gotten a lot better, though could stand for some more flushed out git support in the box, there are a couple extensions that improve things.

Re: Sublime Text vs. Visual Studio Code vs. Atom Performance Test (Dec 2016)

#22

Earlier quoted context omitted.

Given that I was able to consistently see this issue when I was using Sublime Text 3, I'll see if I can come up with something more concrete to show/report this issue, over some weekend.

I would guess it is probably a Sublime plugin trying to syntax highlight or lint your 20MB file. What is the extension of the file?

Just had a quick look at one of the files which I remember was giving me trouble. The file extension is .txt. I will boot up the machine on which I have ST3 installed and give it a try pretty soon.

Re: Sublime Text vs. Visual Studio Code vs. Atom Performance Test (Dec 2016)

#23

Earlier quoted context omitted.

I would guess it is probably a Sublime plugin trying to syntax highlight or lint your 20MB file. What is the extension of the file?

Just had a quick look at one of the files which I remember was giving me trouble. The file extension is .txt. I will boot up the machine on which I have ST3 installed and give it a try pretty soon.

I think I have narrowed this issue down now. Earlier I had assumed this affects all files of certain size, since when I had run into this I was involved in a project where I had to look at certain textual content (dumped out of DB as JSON). That content was generated by one of the in-house dump tools. I had a closer look at one of the files just now and now have a simple python script which consistently reproduces this issue with ST3. Here's the python script which generates a file which can then be opened in ST3 and timed.

  content = 'a'
  with open('content.txt', 'w') as f:
      for x in range(1, 18888789):
          f.write(content)
It took me 39 seconds (consistently) to open it. The generated file size is less than 20MB.

The problem appears to be that ST3 slows down while loading this file which just has 1 huge line. If I tweak that script to change the content from 'a' to 'a\n' to include a new line within the content, the generated file loads relatively quickly and in reasonable time (around 6 seconds for the 37MB odd file).

I admit, this now I think can be considered a corner case but when I ran into this pretty frequently, I just assumed this happens with all files with such sizes. As for why I believed ST2 doesn't have this issue - I'm not sure anymore, because when I try these files now with ST2 it too behaves similarly.

I no longer work on that project which generated these files so had it no been for this thread, I would never have bothered to dig deeper into this and would have just stuck with ST2 :)

Re: Sublime Text vs. Visual Studio Code vs. Atom Performance Test (Dec 2016)

#24
post #5

For my programming class in the upcoming winter, I'm finally switching to Atom from Sublime Text as the recommended default text editor for my (novice) students. My reasons, in descending order of importance: 1. Atom has nice defaults, such as spaces for default tabbing and automatic trimming of white space upon save. In ST, you have to manually alter the user config file. 1.5 Atom has much better file handling in it…

Normally I defend Sublime Text, but I think this is the ideal use case for Atom/VSCode. It has great defaults and is easy to get started with without plugins.

Sublime is still easier than VIM/Emacs for beginners but it does require some effort to get up to full awesomeness.

Re: Sublime Text vs. Visual Studio Code vs. Atom Performance Test (Dec 2016)

#25

The file open times where we are talking about a difference of just over half a second for files which are larger than most web-devs (the target market for Atom and VSCODE) shouldn't make a difference in real life usage. However, where the big difference comes is in searching across an entire project. Want to find all references to `someVar` it's super snappy in Sublime and 10x slower in VSCode and Atom (of course, i…

Brackets project wide search is faster than all of them.

It produces hits in realtime as you type.

Post reply on HN