News for hackers. Stuff that matters.
Re:Rethinking Classical Concurrency Patterns by CupOfJava on Friday September 07, 2018 @11:52AM (#17935255)
Well done! Thank you for the write up.

How much did it improve load times? Why do you think syntect was faster than what you tried previously?

Re:Rethinking Classical Concurrency Patterns by slimsag on Friday September 07, 2018 @04:33PM (#17937411)
I don't have hard numbers on me at the moment, but I remember it going from roughly ~2-4s with Highlight.js on some poor file cases down to ~500ms with Syntect. From what I remember, Pygments was better than Highlight.js by a factor of roughly ~2x, but with Syntect still outperforming it significantly in the general cases.

I think Syntect is faster in general just because of the nature of the work (syntax highlighting is basically just a stack machine + running regex 24/7) and Rust being a really performant choice for this in comparison to Python/JS (although I am sure some less idiomatic code could improve the perf of a Python/JS implementation).

Hopefully one day I'll do a proper write-up / blog post on this topic and provide some more hard numbers / stats for everyone. :)