3 ms·
Interestingly rainbow-delimiters in emacs seems to be instantaneous even with elisp being an slow interpreted language. For better or worse emacs does run "exte
by gpderetta 5y ago
Interestingly rainbow-delimiters in emacs seems to be instantaneous even with elisp being an slow interpreted language. For better or worse emacs does run "extensions" synchronously; this allows extremely fine grained control of the buffer, but a slow extension can kill interactive performance.
- tempodox 5y agoSimilar with `lisp_rainbow` via the slimv plugin in vim. It uses vim's built-in syntax coloring mechanism and doesn't slow down the editor.
- gowld 5y agoThat's what VSCode team did too -- moved the computational work from a plugin to core.
- gowld 5y agoHave you tried rainbow-delimiters on a 42 kilo-line file? That's the benchmark in the OP.
- gpderetta 5y agoJust tried. Colorization seems still almost instantaneous. Emacs does generally not like such a huge file though (reindenting the whole buffer is slow for example).
- dspillett 5y ago> elisp being an slow interpreted language The issue isn't about the speed of the language, but the code not having access to information it needs from the extension API so having to go long ways around to work it out. The new version may be in a faster base language, but the majority of its speed boost comes from having access to information that the editor already knows without having to mess around re-deriving it.