r/programming • • Feb 06 '19

Visual Studio Code: January 2019 (version 1.31)

https://code.visualstudio.com/updates/v1_31
790 Upvotes

340 comments sorted by

View all comments

Show parent comments

3

u/Soyf Feb 07 '19

It's because it's a native app. I'm not complaining about vs code but the difference is still really noticeable.

0

u/[deleted] Feb 08 '19

[deleted]

2

u/Soyf Feb 08 '19

Sublime Text is written in C++ using a custom UI toolkit.

VS code is an electron app, which means it bundles an embedded chromium version since it needs an engine to render the html/css/js code. It's not native because all the code needs to be interpreted and does not compile to machine code.

In case both are well-written apps, the native one will always be order of magnitudes faster than the other (unless some magic new technology happens in the future and proves this wrong). Since vs code is actually quite optimised, the difference is not that shocking compared to other electron apps. You do, however, still notice the difference in startup time, scrolling smoothness, opening big files, etc.