SonOfLilit / kleenexp

modern regular expression syntax everywhere with a painless upgrade path
MIT License
73 stars 16 forks source link

yoav suggestions #20

Closed Crazytieguy closed 2 years ago

SonOfLilit commented 2 years ago

Thanks, this seems to be ~x2 speedup

In [11]: %timeit f()
87.1 µs ± 2.57 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each)

that we measured before vs

In [8]: %timeit f()
42.3 µs ± 1.57 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each)

(python still measures the same, so performance load on machine seems similar)