Title: gh-121423: Improve import time of `socket` by writing `socket.errorTab` as a constant and lazy import modules by Wulian233 · Pull Request #121424 · python/cpython · GitHub
Open Graph Title: gh-121423: Improve import time of `socket` by writing `socket.errorTab` as a constant and lazy import modules by Wulian233 · Pull Request #121424 · python/cpython
X Title: gh-121423: Improve import time of `socket` by writing `socket.errorTab` as a constant and lazy import modules by Wulian233 · Pull Request #121424 · python/cpython
Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Open Graph Description: hyperfine: $ hyperfine -w 16 './python -c "import socket"' Time (mean ± σ): 14.6 ms ± 0.7 ms [User: 11.9 ms, System: 2.6 ms] Range (min … max): 13.4 ms … 16.5 ms...
X Description: hyperfine: $ hyperfine -w 16 './python -c "import socket"' Time (mean ± σ): 14.6 ms ± 0.7 ms [User: 11.9 ms, System: 2.6 ms] Range (min … max): 13...
Opengraph URL: https://github.com/python/cpython/pull/121424
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:a442003b-7ade-b9dd-29a1-ce3e377f0967 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A354:1F16D5:461310:5DC128:6969C445 |
| html-safe-nonce | 5599ca04635aa21c711271dc14744b8597fc8efd792f167e1a2f1a9dc5b5ce96 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzU0OjFGMTZENTo0NjEzMTA6NURDMTI4OjY5NjlDNDQ1IiwidmlzaXRvcl9pZCI6IjI2OTI5NDgyNDE1NzIwMjEzMTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d331b24c826586382f0402a49fee8371a8581635ba8ee1e580bc3558b2d7ca70 |
| hovercard-subject-tag | pull_request:1955880199 |
| 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/121424/commits |
| twitter:image | https://opengraph.githubassets.com/976ddb835a7af3c7e7cc9bed21ac8653058f1b9f0eb4922bdb14d6382bc09e4f/python/cpython/pull/121424 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/976ddb835a7af3c7e7cc9bed21ac8653058f1b9f0eb4922bdb14d6382bc09e4f/python/cpython/pull/121424 |
| og:image:alt | hyperfine: $ hyperfine -w 16 './python -c "import socket"' Time (mean ± σ): 14.6 ms ± 0.7 ms [User: 11.9 ms, System: 2.6 ms] Range (min … max): 13.4 ms … 16.5 ms... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Wulian233 |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| 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