diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-11-21 15:34:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-21 15:34:02 -0800 |
commit | 803ddd8ce22f0de3ab42fb98a225a704c000ef06 (patch) | |
tree | a4193e3e3380dbe654b556042f4a6fc00f48a97e /Lib/idlelib/browser.py | |
parent | 431665bf1971e66c51f59abf0693f700ff7919e8 (diff) | |
download | cpython-git-803ddd8ce22f0de3ab42fb98a225a704c000ef06.tar.gz |
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/idlelib/browser.py')
0 files changed, 0 insertions, 0 deletions