Skip to content

v0.8.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 20 May 12:45
· 7 commits to main since this release

We switched from Lazy<Vec<Regex>> to Vec<Lazy<Regex>> !

This release provides major performance boost by compiling only those regular expressions that are required.

It was storing regexes as Lazy<Vec<Regex>>, so even though we were compiling it only once, we were compiling them all! But some regex like URL are huge, and regex compilation is expensive. Fixing it is easy, just don't compile all regex at once, instead compile them as required, i.e. Vec<Lazy<Regex>> !