diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-11-21 23:34:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-21 23:34:02 (GMT) |
commit | 803ddd8ce22f0de3ab42fb98a225a704c000ef06 (patch) | |
tree | a4193e3e3380dbe654b556042f4a6fc00f48a97e /Lib/test/test_random.py | |
parent | 431665bf1971e66c51f59abf0693f700ff7919e8 (diff) | |
download | cpython-803ddd8ce22f0de3ab42fb98a225a704c000ef06.zip cpython-803ddd8ce22f0de3ab42fb98a225a704c000ef06.tar.gz cpython-803ddd8ce22f0de3ab42fb98a225a704c000ef06.tar.bz2 |
bpo-31324: Optimize support._match_test() (#4421)
* Rename support._match_test() to support.match_test(): make it
public
* Remove support.match_tests global variable. It is replaced with a
new support.set_match_tests() function, so match_test() doesn't
have to check each time if patterns were modified.
* Rewrite match_test(): use different code paths depending on the
kind of patterns for best performances.
Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/test/test_random.py')
0 files changed, 0 insertions, 0 deletions