[issue31324] support._match_test() used by test.bisect is very inefficient

Serhiy Storchaka report at bugs.python.org
Thu Nov 16 09:51:12 EST 2017


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

$ time ./python -m test.bisect --fail-env-changed -o bisect test_asyncio -N1
...
Bisection failed after 2 iterations and 0:00:11

real    0m10,441s
user    0m8,726s
sys     0m0,292s

There is good opportunity for optimizing the regular expression. All cases have the literal 'test.test_asyncio.' prefix, and even longer literal prefixes are common for tens cases.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31324>
_______________________________________


More information about the Python-bugs-list mailing list