commit | 803ddd8ce22f0de3ab42fb98a225a704c000ef06 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Tue Nov 21 15:34:02 2017 -0800 |
committer | GitHub <noreply@github.com> | Tue Nov 21 15:34:02 2017 -0800 |
tree | a4193e3e3380dbe654b556042f4a6fc00f48a97e | |
parent | 431665bf1971e66c51f59abf0693f700ff7919e8 [diff] |
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>