STINNER Victor <victor.stin...@gmail.com> added the comment:

Nice speedup!

I ran a benchmark on PR 3862:

 1002  ./python 
~/prog/python/performance/performance/benchmarks/bm_regex_compile.py 
--inherit=PYTHONPATH -v -o patch.json
 1003  git co master
 1004  make
 1005  ./python 
~/prog/python/performance/performance/benchmarks/bm_regex_compile.py 
--inherit=PYTHONPATH -v -o ref.json
 1007  ./python -m perf compare_to ref.json patch.json 

Mean +- std dev: [ref] 396 ms +- 16 ms -> [patch] 347 ms +- 8 ms: 1.14x faster 
(-12%)

It's the following benchmark on *uncached* regular expressions. So it really 
measures re.compile() performance, not the cache.
https://pyperformance.readthedocs.io/benchmarks.html#regex-compile

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31671>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to