3 ms·
Another contestant in this realm is Bright[1]. It runs entirely on the server and doesn't increase bundle size as seen here[2]. Regarding parsing speed tree-sit
by l5870uoo9y 3y ago
Another contestant in this realm is Bright[1]. It runs entirely on the server and doesn't increase bundle size as seen here[2]. Regarding parsing speed tree-sitter is without a doubt performant since it is written in Rust, but I don't have any problems "parsing on every keystroke" with a setup containing Marked[3], highlight.js[4] and a sanitizer. I did however experience performance issues with other Markdown parser libraries than Marked.
[1]: https://bright.codehike.org/ https://bright.codehike.org/
[2]: https://aihelperbot.com/test-suite https://aihelperbot.com/test-suite
[3]: https://github.com/markedjs/marked https://github.com/markedjs/marked
[4]: https://highlightjs.org/ https://highlightjs.org/
- eyelidlessness 3y agoNit: tree-sitter has first party Rust bindings (and its WASM bindings use Rust wasm-bindgen), but the core functionality is written in C.