Title: gh-81057: Move the Cached Parser Dummy Name to _PyRuntimeState by ericsnowcurrently · Pull Request #100277 · python/cpython · GitHub
Open Graph Title: gh-81057: Move the Cached Parser Dummy Name to _PyRuntimeState by ericsnowcurrently · Pull Request #100277 · python/cpython
X Title: gh-81057: Move the Cached Parser Dummy Name to _PyRuntimeState by ericsnowcurrently · Pull Request #100277 · python/cpython
Description: We have been lazily creating a singleton parser node in _PyPegen_dummy_name() and cached it in a static variable. Here we instead statically define/initialize the node as part of _PyRuntimeState. This eliminates one of the remaining global variables, reduces run-time CPU time (and memory usage), and eliminates a minor memory leak. Issue: gh-81057
Open Graph Description: We have been lazily creating a singleton parser node in _PyPegen_dummy_name() and cached it in a static variable. Here we instead statically define/initialize the node as part of _PyRuntimeState. ...
X Description: We have been lazily creating a singleton parser node in _PyPegen_dummy_name() and cached it in a static variable. Here we instead statically define/initialize the node as part of _PyRuntimeState. ...
Opengraph URL: https://github.com/python/cpython/pull/100277
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:09f29cb1-a938-0509-9ce3-3e097b1d0572 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C6A0:70C3B:169E43:1E595D:6969CE68 |
| html-safe-nonce | bbf96b23f8c19e463c99e692377bc714771e58f2200e01c98fd00a118d69f9da |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkEwOjcwQzNCOjE2OUU0MzoxRTU5NUQ6Njk2OUNFNjgiLCJ2aXNpdG9yX2lkIjoiMzE3MDQ3OTczOTM4MTU5OTg0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 76e57c6c24642313e2b1596e971d7a9620813473572917d76d1b26d281094504 |
| hovercard-subject-tag | pull_request:1167283561 |
| 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/100277/files |
| twitter:image | https://avatars.githubusercontent.com/u/1152074?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1152074?s=400&v=4 |
| og:image:alt | We have been lazily creating a singleton parser node in _PyPegen_dummy_name() and cached it in a static variable. Here we instead statically define/initialize the node as part of _PyRuntimeState. ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| 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 | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width