Re:Optimizations in Syntax Highlighting
by trishume on Wednesday February 08, 2017 @03:22PM
(#13601674)
Yes it would be possible to write a C wrapper for my Rust library and link that from Node, however I expect you might lose a lot of performance to data conversion.
I have yet to do the regex engine port, I'm doing that later this evening. I'm porting it from Oniguruma to https://github.com/google/fancy-regex which accelerates common types of regexes using the awesome Rust regex crate which is super fast.
Re:Optimizations in Syntax Highlighting
by dgfgfdagasdfgfa on Wednesday February 08, 2017 @08:26PM
(#13603836)
Doesn't rust export the C abi? Or does the "c wrapper" just involve converting c types to rust domain types>
And, do you have an issue for the regex port? Would love to see the benchmark.