Code is written almost entirely in JavaScript, with a UI driven by a [browser layout engine](https://en.wikipedia.org/wiki/Blink_(web_engine)) and its completely generalised DOM API, and text modelled using trees of JavaScript objects.
Sublime's written in C++ with optional supporting Python on the side, and a tuned native UI toolkit with specialised APIs reflecting the needs of a text editor. Text is modelled using efficient data structures on the C++ side.
1
u/Freeky Dec 06 '15
Code is written almost entirely in JavaScript, with a UI driven by a [browser layout engine](https://en.wikipedia.org/wiki/Blink_(web_engine)) and its completely generalised DOM API, and text modelled using trees of JavaScript objects.
Sublime's written in C++ with optional supporting Python on the side, and a tuned native UI toolkit with specialised APIs reflecting the needs of a text editor. Text is modelled using efficient data structures on the C++ side.
So, while the Python implementation Sublime uses is actually considerably slower than the JavaScript engine Code is based on.
Code could lean further towards the Sublime model, but it would cost a lot of effort and flexibility. I wouldn't hold your breath.