PR: https://github.com/rust-lang-nursery/regex/pull/164
This was a substantial change with no changes in the public API, so you’ll automatically get it on the next cargo update
. Please be vigilant for any problems and report them so they can get fixed.
There are benchmarks on the PR. Highlights:
- We’re faster that PCRE in many of the benchmarks. Still some room for improvements.
- Don’t use the
regex!
macro. It’s incredibly slower on almost every dimension. (We’re talking multiple orders of magnitude here.) It’s so bad that there is talk of removing it altogether until the approach can be revisited. Thoughts? - I wrote a high level design overview of the library: HACKING.md. Feedback welcome!