Title: [2.7] bpo-31324: Optimize support._match_test() (#4523) by vstinner · Pull Request #4524 · python/cpython · GitHub
Open Graph Title: [2.7] bpo-31324: Optimize support._match_test() (#4523) by vstinner · Pull Request #4524 · python/cpython
X Title: [2.7] bpo-31324: Optimize support._match_test() (#4523) by vstinner · Pull Request #4524 · python/cpython
Description: 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 (cherry picked from commit 803ddd8) bpo-31324: Fix test.support.set_match_tests(None) (#4505) (cherry picked from commit bb11c3c) (cherry picked from commit 70b2f87) https://bugs.python.org/issue31324
Open Graph Description: 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 supp...
X Description: 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 supp...
Opengraph URL: https://github.com/python/cpython/pull/4524
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:70f440b4-8301-93fe-e85e-ab7f0861d1ba |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8760:3F6EBB:AC032:E41CC:6A4D81CB |
| html-safe-nonce | 672de7819ffaae0ebc67a299dbd12c106351fb82369b4154359b431be6a6a318 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzYwOjNGNkVCQjpBQzAzMjpFNDFDQzo2QTREODFDQiIsInZpc2l0b3JfaWQiOiI0NzAwOTQyNjg2MjMxNTYwNjUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fcdc2c5eb57de120550ea9e060d8e6fce1020815a9b71eba5b36ac01d1f914dd |
| hovercard-subject-tag | pull_request:154420514 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/4524/files |
| twitter:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| og:image:alt | 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 supp... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6bf61c909482ec3072ef5d7a5a28f2a9d214788c9a44793eca1960048cb05ae |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6702a58b419a792226bd21ef0fb1bcb318bbcaa3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width