3 ms·
1. They are doing things lazily. Like only render(and check for errors) the part which is inside viewport first. 2. They are not creating layers of JavaScript.
by akmittal 9y ago
1. They are doing things lazily. Like only render(and check for errors) the part which is inside viewport first.
2. They are not creating layers of JavaScript. They are using native code wherever necessary.
3. VS code has more control over what extensions can do so that they don't adversely affect the performance.
- pitaj 9y agoI'm not sure where you're looking, but as far as I can tell, VS Code uses practically zero native code. When looking to the git repository, all I see is TS, JS, CSS, and some misc stuff.
- jplatte 9y agoI know they use ripgrep¹ for their project-wide search feature. I'd imagine that the other native code would also be separate processes whose output is parsed, or in C / C++ / Rust libraries that live in their own repos and that they use via bindings which would themselves only be JS / TS code (and might live in separate repos as well). ¹: https://github.com/BurntSushi/ripgrep https://github.com/BurntSushi/ripgrep