René's URL Explorer Experiment


Title: gh-158592: Skip reallocation when shrinking a small list by corona10 · Pull Request #158787 · python/cpython · GitHub

Open Graph Title: gh-158592: Skip reallocation when shrinking a small list by corona10 · Pull Request #158787 · python/cpython

X Title: gh-158592: Skip reallocation when shrinking a small list by corona10 · Pull Request #158787 · python/cpython

Description: Issue: gh-158592

Open Graph Description: Issue: gh-158592

X Description: Issue: gh-158592

Opengraph URL: https://github.com/python/cpython/pull/158787

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:fb1c1d13-f778-55b7-1f7b-a8a6e3ee6531
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD2F4:25866C:2FFC5E:3EF3E4:6B023454
html-safe-nonce09007b207d425e2acf73f1e510e7ce3e048957ee8727c98fc8b8e3335c6f3adf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkY0OjI1ODY2QzoyRkZDNUU6M0VGM0U0OjZCMDIzNDU0IiwidmlzaXRvcl9pZCI6Ijg4NzI1NDQyMTkyNjExODcxNTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9934eec1e35d9f97d8dbbb382a91cdf930430af28b97a915686c7ba0b9396d1d
hovercard-subject-tagpull_request:4731491156
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/158787/files
twitter:imagehttps://avatars.githubusercontent.com/u/5110323?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5110323?s=400&v=4
og:image:altIssue: gh-158592
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/158787/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F158787%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F158787%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/158787/files
Reloadhttps://github.com/python/cpython/pull/158787/files
Reloadhttps://github.com/python/cpython/pull/158787/files
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
corona10https://github.com/corona10
python:mainhttps://github.com/python/cpython/tree/main
corona10:gh-158592https://github.com/corona10/cpython/tree/gh-158592
Conversation 33 https://github.com/python/cpython/pull/158787
Commits 9 https://github.com/python/cpython/pull/158787/commits
Checks 57 https://github.com/python/cpython/pull/158787/checks
Files changed 2 https://github.com/python/cpython/pull/158787/files
gh-158592: Skip reallocation when shrinking a small list https://github.com/python/cpython/pull/158787/files#top
Show all changes 9 commits https://github.com/python/cpython/pull/158787/files
bbad8e9 gh-158592: Skip reallocation when shrinking a small list corona10 Oct 4, 2026 https://github.com/python/cpython/pull/158787/commits/bbad8e9d3929e13f90d2c6d5fe262e5fbbb814af
23ad656 Address code review corona10 Oct 4, 2026 https://github.com/python/cpython/pull/158787/commits/23ad656bfc0cfee7fdef8462ade0aa0f0f5fb271
5cd80db Address code review corona10 Oct 5, 2026 https://github.com/python/cpython/pull/158787/commits/5cd80dbdf5e21346477606e4fca4cf51aea2f3a8
89b411f Address code review corona10 Oct 5, 2026 https://github.com/python/cpython/pull/158787/commits/89b411f379adf2bd0f20d46c9e7ce82df7dee4f8
a4f3cff Apply suggestion from @picnixz corona10 Oct 5, 2026 https://github.com/python/cpython/pull/158787/commits/a4f3cff91c872fd033ce013665750b91ab460c9f
dd855fd Revert "Apply suggestion from @picnixz" corona10 Oct 5, 2026 https://github.com/python/cpython/pull/158787/commits/dd855fdf74dbf62e60d2212a88b2d1f1a0717204
3404db8 Address code review corona10 Oct 6, 2026 https://github.com/python/cpython/pull/158787/commits/3404db85f81154e0c2f8d5d9178c944a5a2706b5
6cd6e2a nit corona10 Oct 6, 2026 https://github.com/python/cpython/pull/158787/commits/6cd6e2a4e2bd671546345ad9dd16a9a2491b7f65
f01205b Merge branch 'main' into gh-158592 corona10 Oct 6, 2026 https://github.com/python/cpython/pull/158787/commits/f01205b7526614e75bb17decfafaf08de0cafb3a
Clear filters https://github.com/python/cpython/pull/158787/files
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
2026-10-04-11-59-33.gh-issue-158592._BpoeY.rst https://github.com/python/cpython/pull/158787/files#diff-743824dd4b8d13b77a54cfa8099d5f0b0abfe590584ef68f96205bfcadf47c25
listobject.c https://github.com/python/cpython/pull/158787/files#diff-67a42c5c0990c7aceea040ffc07905299aab97d64dc49adb256f85340b2c7e81
Misc/NEWS.d/next/Core_and_Builtins/2026-10-04-11-59-33.gh-issue-158592._BpoeY.rsthttps://github.com/python/cpython/pull/158787/files#diff-743824dd4b8d13b77a54cfa8099d5f0b0abfe590584ef68f96205bfcadf47c25
View file https://github.com/corona10/cpython/blob/f01205b7526614e75bb17decfafaf08de0cafb3a/Misc/NEWS.d/next/Core_and_Builtins/2026-10-04-11-59-33.gh-issue-158592._BpoeY.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/158787/{{ revealButtonHref }}
eendebakpthttps://github.com/eendebakpt
Oct 5, 2026https://github.com/python/cpython/pull/158787/files#r4186595124
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
corona10https://github.com/corona10
Oct 5, 2026https://github.com/python/cpython/pull/158787/files#r4188777919
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@eendebakpthttps://github.com/eendebakpt
https://github.com/python/cpython/pull/158602willhttps://github.com/python/cpython/pull/158602will
@picnixzhttps://github.com/picnixz
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
Objects/listobject.chttps://github.com/python/cpython/pull/158787/files#diff-67a42c5c0990c7aceea040ffc07905299aab97d64dc49adb256f85340b2c7e81
View file https://github.com/corona10/cpython/blob/f01205b7526614e75bb17decfafaf08de0cafb3a/Objects/listobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/158787/{{ revealButtonHref }}
https://github.com/python/cpython/pull/158787/files#diff-67a42c5c0990c7aceea040ffc07905299aab97d64dc49adb256f85340b2c7e81
https://github.com/python/cpython/pull/158787/files#diff-67a42c5c0990c7aceea040ffc07905299aab97d64dc49adb256f85340b2c7e81
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
https://github.com/python/cpython/pull/158787/files#diff-67a42c5c0990c7aceea040ffc07905299aab97d64dc49adb256f85340b2c7e81
https://github.com/python/cpython/pull/158787/files#diff-67a42c5c0990c7aceea040ffc07905299aab97d64dc49adb256f85340b2c7e81
https://github.com/python/cpython/pull/158787/files#diff-67a42c5c0990c7aceea040ffc07905299aab97d64dc49adb256f85340b2c7e81
x42005e1fhttps://github.com/x42005e1f
Oct 4, 2026https://github.com/python/cpython/pull/158787/files#r4177206669
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
corona10https://github.com/corona10
Oct 4, 2026https://github.com/python/cpython/pull/158787/files#r4177314653
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@x42005e1fhttps://github.com/x42005e1f
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
x42005e1fhttps://github.com/x42005e1f
Oct 4, 2026https://github.com/python/cpython/pull/158787/files#r4177335460
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
corona10https://github.com/corona10
Oct 4, 2026https://github.com/python/cpython/pull/158787/files#r4177386870
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
corona10https://github.com/corona10
Oct 4, 2026https://github.com/python/cpython/pull/158787/files#r4177404185
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
x42005e1fhttps://github.com/x42005e1f
Oct 4, 2026https://github.com/python/cpython/pull/158787/files#r4177425272
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
corona10https://github.com/corona10
Oct 4, 2026https://github.com/python/cpython/pull/158787/files#r4177434490
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
eendebakpthttps://github.com/eendebakpt
Oct 4, 2026https://github.com/python/cpython/pull/158787/files#r4179457207
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
https://github.com/python/cpython/pull/158787/files#diff-67a42c5c0990c7aceea040ffc07905299aab97d64dc49adb256f85340b2c7e81
Please reload this pagehttps://github.com/python/cpython/pull/158787/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.