3 ms·
Your specific example highlights the performance difference between VS Code and Atom very nicely, and VS Code is an absolute gem of engineering. But, for large
by danielbarla 4y ago
Your specific example highlights the performance difference between VS Code and Atom very nicely, and VS Code is an absolute gem of engineering.
But, for large files, I am not sure it has much to do with Electron in this specific case. Notepad is about as native as they come, and famously struggled with large files - anything over a few dozen KB - for a few decades (maybe still today?). Basically, if you're going to do seriously stupid stuff in an app's code, like loading the entire file upfront and applying word-wrapping, it doesn't really matter if you're doing it 2-5x faster, it will still take too long.
- murukesh_s 4y agoLoading large files need not have anything with Electron. The file can live in another child process either fully in memory or swapped to the filesystem. When you scroll you can load the required contents into the view (Electron). For searching you can build index or even perform search on the swap and show results accordingly.. It's complex but can be done with Electron (as proved by VSCode).