Hacker News new | ask | show | jobs
by enlyth 2094 days ago
People like to bash VS code performance, but try opening a 60MB JSON file in different editors on Windows for example.

Notepad doesn't even load and crashes, Sublime will takes minutes to even load the file, Notepad++ will be unusable as scrolling will take a few seconds, and in VS Code it opens immediately and you can seamlessly scroll to any one of the 600k lines without any delay.

6 comments

Load it in Vim and it works as smoothly as with a single line file.
there's a great but not well known editor for windows called EmEditor that has a strong emphasis on performance and large file support. afaik the author has a background in low level performance optimization from Intel. if you work with large csv and/or json files you want this editor - it's amazing!
Suzukawa Editor (Japanese shareware) is interesting project. It claims it's the best editor for huge gigantic file. It compares with EmEditor in official page and it performs unmatched performance.

I haven't used this because I have no chance to edit such gigantic files.

https://szkwjp.sakura.ne.jp/

This is a world ranking with other editors by the author, maybe others are suitable for non Japanese users.

https://szkwjp.sakura.ne.jp/bigtexteditors.html

fwiw, I have the opposite experience with JSON files and sublime vs. vscode. Sublime opens fast and seamless, VSCode basically ceases to operate while it struggles to figure out syntax highlighting of such a "massive" file. I have near barebones installs of both, I do not believe it's plugins nor settings related.

Ultimately VSCode is my daily driver but I use sublime3 when I need to do fluid text editing, anything column/multi-select based, regex replaces, or manipulating large files. VScode has those features but they feel slow and buggy in comparison.

That’s surprising, in that situation my VS Code tells me that it’s turned off syntax highlighting because the file is too large.
I can't agree on Notepad++. It is my go-to for opening very large log files and I've never noticed scrolling issues. I love VS Code but I've found notepad++ to be the better solution for 'read-only' situations (opening very large files, searching files / directories).
That's why... (insert brain's attempt to argue for vim)... you don't open files on Windows.
With some reasonable delay VSCode will even manage format and highlight this 60mb json. Search will work instantly.