News for hackers. Stuff that matters.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by fouc on Tuesday February 12, 2019 @10:09AM (#19144039)
Is VS Code really that bad in CPU/memory usage?
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by 0xffff2 on Tuesday February 12, 2019 @10:26AM (#19144189)
Yes, it really is. I use VSCode as my daily driver because I can find an extension for anything. It's good for an electron app, but it's still an electron app. I just tried opening a 20mb log file with similar results on CPU usage. The memory usage for that one file was background noise compared to the 1.9GB VSCode was already using with 2 workspaces and 10 normal source files open.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by falcrist on Tuesday February 12, 2019 @01:43PM (#19146218)
I think the issue might be the number or type of plugins involved.

I work mostly with ASM, C, C#, and a bit of VB. Even with 3 separate folders open, intelligence running, a couple larger files (of order 100mb) open, ~20 tabs with source and CSV, and a few plugins to help readability, VSC is taking up "only" 700MB.

Not exactly sleek compared to old-school editors, but not quite as bloated as your example.

It's well worth noting that plugins like the C/C++ extension run separate instances for each relevant tab on every workspace. When you have many tabs and many plugins, it starts to eat up a significant amount of space.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by hsk0823 on Tuesday February 12, 2019 @10:21AM (#19144146)
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by jw14 on Tuesday February 12, 2019 @10:47AM (#19144433)
As an Atom user I wanted to try this because historically Atom has been worse than VS Code at large files.

I don't have a 500k word text file laying around, but I tried an 80k line SQL script. FWIW, it's 8.5mb and the Atom wordcount plugin claims it's about 1.5 million "words".

Atom opened this file in 3-4 seconds and memory usage only increased about 30mb.

Navigation grinds to a halt with the wordcount plugin enabled. Once I disable its "always on" feature (normally it doesn't pay attention to .sql), navigation and editing seem snappy.

Just a data point. VS Code should be able to get much better...

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by marcosdumay on Tuesday February 12, 2019 @11:47AM (#19145087)
Interesting that nano has low performance overall. It's easy to understand (it's not an advanced editor), but I really didn't expect it.

Also, notepad++ is all over the place.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by kgwxd on Tuesday February 12, 2019 @10:20AM (#19144131)
Yes. Assuming you don't need to run other CPU/memory intensive programs, probably not a real big issue when plugged in, but it's a killer if you're running on battery.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by airstrike on Tuesday February 12, 2019 @10:21AM (#19144137)
Maybe not compared to other GUI apps, but when you've grown accustomed to the performance of vim in a terminal, it feels very sluggish in comparison
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by simias on Tuesday February 12, 2019 @10:34AM (#19144274)
I run Emacs outside of the terminal and it's quite fast. There used to be a time where it was considered a resource hog but compared to the monster IDEs we have today it's pretty lightweight. It's not the best editor for dealing with huge files but it does the job (IIRC it used to be a significant limitation back in the 32bit days but not so much on 64bit systems).
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by licebmi__at__ on Tuesday February 12, 2019 @03:53PM (#19147372)
Maybe it was my configuration, but the reason I switched from vim to emacs, was that I was debugging some large log files that made vim choke. I read a comment praising that behavior and I was surprised to see that it was the case, more so as I was in the belief that emacs had a lot of bloat.

Which editor would you consider that is better with large files? Not really interested in switching, but really curious.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by simias on Wednesday February 13, 2019 @01:00PM (#19155026)
I genuinely don't know, I just noticed that Emacs could be rather sluggish for some operations while dealing with massive files. For all I know all other editors might fare worse.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by airstrike on Tuesday February 12, 2019 @10:38AM (#19144332)
I hear you. To be clear, I'm not saying vim is significantly faster than any other app out there. I'm merely saying VS Code specifically is sluggish in comparison
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by sureaboutthis on Tuesday February 12, 2019 @10:22AM (#19144151)
Yes. Horribly so.