Boost.Regex in Ruby
Ruby makes Regexes easy. Boost.Regex in C++ offers a really fast Regex implementation that blows Ruby’s regexes out of the water. I just made a gem so you can have both. Just run gem install ruby-boost-regex
.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Ruby makes Regexes easy. Boost.Regex in C++ offers a really fast Regex implementation that blows Ruby’s regexes out of the water. I just made a gem so you can have both. Just run gem install ruby-boost-regex
.
Comments
Which version of Ruby are you using for your benchmarks?
He’s using 1.8 (#include “re.h” not “ruby/re.h” amongst other reasons I don’t think this would compile on a more recent Ruby version) so it’s not Oniguruma being blown out of the water.
Shanna is correct - this is 1.8.x. Working on 1.9 right now, but since most projects I’m working on won’t be going to 1.9, I wanted to see how it’d stack up against 1.8.x.
Post a comment