4 ms·
Just in case (Sciter's author is here): This is prototype I've made to give an idea of how the same thing could be done in Sciter: https://sciter.com/htmlcss-d
by c-smile 9y ago
Just in case (Sciter's author is here):
This is prototype I've made to give an idea of how the same thing could be done in Sciter: https://sciter.com/htmlcss-desktop-ui-solutions-distribution-sizes/ https://sciter.com/htmlcss-desktop-ui-solutions-distribution...
In general it is expected that such thing can be done in 5% of VS Code distribution size.
Sciter draws things faster than Electron as e.g. on Windows it uses DirectX directly. Electron uses Skia that is mostly CPU based rasterizer.
Yet to make syntax highlighting I've introduced "marked runs" - https://sciter.com/tokenizer-mark-syntax-colorizer/ https://sciter.com/tokenizer-mark-syntax-colorizer/
That allows to do syntax highlighting without change of DOM. In VS Code, in order to make things at least somehow moving, they were forced to implement sliding window editing - DOM represents not full text but only viewable portion. That creates a lot of problems and significant portion of Code is the fight with limitations of browser's DOM.