Title: Micro optimize list.pop · Issue #94603 · python/cpython · GitHub
Open Graph Title: Micro optimize list.pop · Issue #94603 · python/cpython
X Title: Micro optimize list.pop · Issue #94603 · python/cpython
Description: Feature or enhancement list.pop currently calls list_ass_slice which contains some extra caculations not relevant for list.pop. With a direct implementation the cases for small lists is improved. Pitch The gain for the improved cases is ...
Open Graph Description: Feature or enhancement list.pop currently calls list_ass_slice which contains some extra caculations not relevant for list.pop. With a direct implementation the cases for small lists is improved. P...
X Description: Feature or enhancement list.pop currently calls list_ass_slice which contains some extra caculations not relevant for list.pop. With a direct implementation the cases for small lists is improved. P...
Opengraph URL: https://github.com/python/cpython/issues/94603
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Micro optimize list.pop","articleBody":"**Feature or enhancement**\r\n\r\n`list.pop` currently calls `list_ass_slice` which contains some extra caculations not relevant for `list.pop`. With a direct implementation the cases for small lists is improved.\r\n\r\n**Pitch**\r\n\r\nThe gain for the improved cases is in the 10% to 30% range.\r\n\r\n**Previous discussion**\r\n\r\nThis came out of tests performed related to #94508\r\n\r\n\u003c!--\r\n New features to Python should first be discussed elsewhere before creating issues on GitHub,\r\n for example in the \"ideas\" category (https://discuss.python.org/c/ideas/6) of discuss.python.org,\r\n or the python-ideas mailing list (https://mail.python.org/mailman3/lists/python-ideas.python.org/).\r\n Use this space to post links to the places where you have already discussed this feature proposal:\r\n--\u003e\r\n\r\n\r\n\u003c!--\r\nYou can freely edit this text. Remove any lines you believe are unnecessary.\r\n--\u003e\r\n\n\n\u003c!-- gh-pr-number: gh-94604 --\u003e\n* PR: gh-94604\n\u003c!-- /gh-pr-number --\u003e\n","author":{"url":"https://github.com/eendebakpt","@type":"Person","name":"eendebakpt"},"datePublished":"2022-07-06T12:42:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/94603/cpython/issues/94603"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6c6956ec-32eb-5037-1f0f-9376fe3d9e57 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E78A:72C59:14F7A00:1DC38B1:69690246 |
| html-safe-nonce | 27510f512baab8b714052a000883410f178916f711cdb40251bbed8a5f9adfd8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzhBOjcyQzU5OjE0RjdBMDA6MURDMzhCMTo2OTY5MDI0NiIsInZpc2l0b3JfaWQiOiI4MDU4Njc3MzMyODczMzgwNDIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 07ca3c0e4067c355f854e32b52064ac40ce1c840d12f51204d5d56a24b7d32f6 |
| hovercard-subject-tag | issue:1295784973 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/94603/issue_layout |
| twitter:image | https://opengraph.githubassets.com/803a3b794a822817e9eb0e761c48fe109239a05c469ea19d4c34fa0c8a575a4f/python/cpython/issues/94603 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/803a3b794a822817e9eb0e761c48fe109239a05c469ea19d4c34fa0c8a575a4f/python/cpython/issues/94603 |
| og:image:alt | Feature or enhancement list.pop currently calls list_ass_slice which contains some extra caculations not relevant for list.pop. With a direct implementation the cases for small lists is improved. P... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eendebakpt |
| hostname | github.com |
| expected-hostname | github.com |
| None | e6156bd4ef9f2dc8dadf4c49a8f7ed8532186388cef72eda3ccb9f0ab3b8cfca |
| turbo-cache-control | no-preview |
| 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 | fd1938215b152e2c6a29cf56fec07fd9f91f1203 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width