gh-94603: micro optimize list.pop by eendebakpt · Pull Request #94604 · python/cpython · GitHub

github.com

Tin mới

eendebakpt:performance/list_pop

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Micro optimize list.pop #94603

📜🤖 Added by blurb_it.

View reviewed changes

Update Objects/listobject.c

View reviewed changes

Update Objects/listobject.c

main...eendebakpt:list_assignment_optimization

Added similar optimizations to list_ass_slice does not seem to have the same performance benefits. Not sure why that is

Merge branch 'main' into performance/list_pop

Merge branch 'main' into performance/list_pop

main...eendebakpt:list_assignment_optimization2

Added similar optimizations to list_ass_slice does not seem to have the same performance benefits. Not sure why that is

Merge branch 'main' into performance/list_pop

Merge branch 'main' into performance/list_pop

Merge branch 'main' into performance/list_pop

Merge branch 'main' into performance/list_pop

Merge branch 'main' into performance/list_pop

Merge branch 'main' into performance/list_pop

View reviewed changes

Apply suggestions from code review

rename to size_after_pop

make variable const

awaiting change review

🔨 test-with-refleak-buildbots

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

Update Objects/listobject.c

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot ARM Raspbian 3.x has failed when building commit b3da698.

Merged main into regmachine branch (