Closed miskfi closed 2 years ago
The regexes are now precompiled and I replaced re.sub with str.translate which is generally faster. This commit should bring 20-30% speedup (at least it does on my data).
re.sub
str.translate
The regexes are now precompiled and I replaced
re.sub
withstr.translate
which is generally faster. This commit should bring 20-30% speedup (at least it does on my data).