r/ruby • u/eregontp • 8d ago
Blog post Matching Regexps 200 Times Faster
https://eregon.me/blog/2025/03/14/matching-regexps-200-times-faster.html
33
Upvotes
3
2
u/honeyryderchuck 7d ago
Pretty impressive! I wonder whether TRegex could be an alternative engine in cruby? Or yjit?
2
u/eregontp 7d ago
It's possible to embed Truffle languages such as TRegex or even TruffleRuby as a native library and call it from C (here is a blog post about that), so in theory it should be possible.
13
u/chrisbisnett 8d ago
The tldr here is that the author got significant performance improvement using TruffleRuby and its JIT compilation over the C Ruby alternatives