Title: gh-118761: Optimise import time for ``shlex`` by AA-Turner · Pull Request #132036 · python/cpython · GitHub
Open Graph Title: gh-118761: Optimise import time for ``shlex`` by AA-Turner · Pull Request #132036 · python/cpython
X Title: gh-118761: Optimise import time for ``shlex`` by AA-Turner · Pull Request #132036 · python/cpython
Description: This PR achieves a 33x improvement in import time for the shlex module and a 4-12x improvement in performance for shlex.quote. Current: import shlex: cumulative time mean: 9065.967 µs median: 9092.000 µs stdev: 282.015 min: 8587 max: 9556 This PR: import shlex: cumulative time mean: 274.300 µs median: 275.000 µs stdev: 8.860 min: 259 max: 289 Issue: gh-118761
Open Graph Description: This PR achieves a 33x improvement in import time for the shlex module and a 4-12x improvement in performance for shlex.quote. Current: import shlex: cumulative time mean: 9065.967 µs median: 9092....
X Description: This PR achieves a 33x improvement in import time for the shlex module and a 4-12x improvement in performance for shlex.quote. Current: import shlex: cumulative time mean: 9065.967 µs median: 9092....
Opengraph URL: https://github.com/python/cpython/pull/132036
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4c9b1e77-9ea8-ac66-6263-3f06781280b2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B420:CADE5:184B408:2075484:6969BCE6 |
| html-safe-nonce | ff49591b60d03d65609abc7bf941901f986990ec27aaec48af8bdb033ee32d46 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDIwOkNBREU1OjE4NEI0MDg6MjA3NTQ4NDo2OTY5QkNFNiIsInZpc2l0b3JfaWQiOiI4NTc4NjIwODU5NjM2ODkwODU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 69ef572e883911a72923dc0cfc908e41a41525eb936f057fd1b93a3c0bfb89f5 |
| hovercard-subject-tag | pull_request:2435482122 |
| 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/132036/files |
| twitter:image | https://avatars.githubusercontent.com/u/9087854?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/9087854?s=400&v=4 |
| og:image:alt | This PR achieves a 33x improvement in import time for the shlex module and a 4-12x improvement in performance for shlex.quote. Current: import shlex: cumulative time mean: 9065.967 µs median: 9092.... |
| 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