News for hackers. Stuff that matters.
Re:Atom 1.28 by bdcravens on Thursday June 21, 2018 @11:14PM (#17371015)
Sublime has always been king of the hill for opening giant files (like CSVs if you need to troubleshoot data imports) but unix tools and software like head and vim can take you pretty far if budget is a concern.
Re:Atom 1.28 by jakear on Thursday June 21, 2018 @11:57PM (#17371162)
Is subl really that much faster at big CSV's for you? I made a quick 10 million line, ~1GB CSV in Python, opened it in both sublime text and code. code opened in 20seconds, subl took over a minute.
Re:Atom 1.28 by bdcravens on Friday June 22, 2018 @12:52AM (#17371423)
(copying comment to your other reply for benefits of thread)

Honestly, it's been a while since I tried. Perhaps I'll take another stab at it and see how VS Code has improved. Out of curiosity, how wide is the file? Some of the files I open are 250+ field invoices, so each line is easily 1k characters each.

Re:Atom 1.28 by jakear on Friday June 22, 2018 @02:12AM (#17371786)
Ah didn't realize it was the same account. I tried with two 1GB files, one with many lines but each short, another with long lines but not as many:

1.1GB, 10M lines.

Code: ~10s, smooth scrolling, instant jumping.

Sublime: ~50s, smooth scrolling, instant jumping.

Atom: ~10s, smooth scrolling, very choppy jumping: ~5s loads per jump (also got some error messages about text too large for buffer)

1.0GB, 40k lines.

Code: ~15s, scrolling somewhat choppy, quick jumping

Sublime: Application not responding after ~60s, waitied another 60s, no change. Same behavior each of the two times I attempted.

Atom: ~8s, smooth scroll, ~30s per jump, occasional "Editor is taking too long to load" messages.

Note: Atom enforces a maximum line length of ~500 chars before it wraps regardless of word wrap setting. This means the 8s load was only showing a couple lines worth of content. I find this restriction not acceptible for the long-line test case, but including anyways for completeness)

Full "report": https://pastebin.com/wUv8PSgp

Re:Atom 1.28 by nojvek on Friday June 22, 2018 @12:25PM (#17375225)
Vscode invested in a lot of lazy loading both for modules at startup time and opening large files.

Their text buffers and internal datastructures are optimized for perf and save space on RAM.

It amazes me sometimes that all this is built on standard web technology and it’s mostly blink (chromium) and v8 under the hood.

Re:Atom 1.28 by kup0 on Friday June 22, 2018 @02:36PM (#17376231)
I never open very large files, but this is interesting data nevertheless!
Re:Atom 1.28 by cup-of-tea on Friday June 22, 2018 @02:55AM (#17371966)
It has never been that. It is not a disk based editor. Use UltraEdit is you want that.