Title: bpo-23689: re module, fix memory leak when a match is terminated by a signal or memory allocation failure · Pull Request #32223 · python/cpython · GitHub
Open Graph Title: bpo-23689: re module, fix memory leak when a match is terminated by a signal or memory allocation failure · Pull Request #32223 · python/cpython
X Title: bpo-23689: re module, fix memory leak when a match is terminated by a signal or memory allocation failure · Pull Request #32223 · python/cpython
Description: @serhiy-storchaka , please review the commits one by one. MSVC 2022 non-PGO release build, run test_re.py. It's a bit slower. (best of 10) Before: 0.278 sec After: 0.283 sec But when switching REPEAT very frequently, it has some speed up: import pyperf setup = ("import re;" "s = 100_000_000 * 'a';" "p = r'.*?(?:bb)+';" "p = re.compile(p)") stmt = "p.match(s)" runner = pyperf.Runner() runner.timeit("match", stmt=stmt, setup=setup) # Before: Mean +- std dev: 1.88 sec +- 0.03 sec # After: Mean +- std dev: 1.63 sec +- 0.03 sec https://bugs.python.org/issue23689
Open Graph Description: @serhiy-storchaka , please review the commits one by one. MSVC 2022 non-PGO release build, run test_re.py. It's a bit slower. (best of 10) Before: 0.278 sec After: 0.283 sec But when switchin...
X Description: @serhiy-storchaka , please review the commits one by one. MSVC 2022 non-PGO release build, run test_re.py. It's a bit slower. (best of 10) Before: 0.278 sec After: 0.283 sec But when swit...
Opengraph URL: https://github.com/python/cpython/pull/32223
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:06ebd7ee-2c07-5fdc-6a71-ecf70c28dbf8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 86C2:3CA024:85144:BC1CE:696A0C64 |
| html-safe-nonce | 9a77dabe360080fc7f58d0f82fcd67b5ec46618d4c17885b1cc06ab3493fba38 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkMyOjNDQTAyNDo4NTE0NDpCQzFDRTo2OTZBMEM2NCIsInZpc2l0b3JfaWQiOiIyNTc4NDM4NzY1NTc4Njg1NTQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bef6821d2eb773f21546c8352daf33839a9f48c75cbd4f582d4bdbd719276a5f |
| hovercard-subject-tag | pull_request:896954414 |
| 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/32223/files |
| twitter:image | https://avatars.githubusercontent.com/u/10137?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10137?s=400&v=4 |
| og:image:alt | @serhiy-storchaka , please review the commits one by one. MSVC 2022 non-PGO release build, run test_re.py. It's a bit slower. (best of 10) Before: 0.278 sec After: 0.283 sec But when switchin... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width