gh-91432: Specialize FOR_ITER by sweeneyde · Pull Request #91713 · python/cpython · GitHub

github.com

Tin mới

sweeneyde:special_for_iter2

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

faster-cpython/ideas#67

Faster-Cpython thread: faster-cpython/ideas#67 GH issue: #91432

Merge remote-tracking branch 'upstream/main' into special_for_iter2

NOTRACE_DISPATCH_SAME_OPARG

Update mark_stacks

comment out assertions

Merge branch 'main' into special_for_iter2

Make FOR_ITER_RANGE mutate the local

Merge remote-tracking branch 'upstream/main' into special_for_iter2

awaiting core review

awaiting core review

Add more tests, add more casts

View reviewed changes

Learn more about hiding disruptive comments

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

Merge branch 'main' into special_for_iter2

Optimizing FOR_ITER bytecode #91432

update test_dis.py

Merge remote-tracking branch 'upstream/main' into special_for_iter2

use the new exponential backoff

View reviewed changes

revert using sdigits, add _PyLong_AssignValue

revert test_sys sizeof check

revert test_range changes

View reviewed changes

add comment and use Py_ssize_t

View reviewed changes

faster-cpython/ideas#147

This only works for positive integers. Given that it is only used for range iteration, that's fine for now. But could you add a comment, so it doesn't get overlooked when we implement faster-cpython/ideas#147

Add comment: only positive

🔨 test-with-buildbots

🔨 test-with-buildbots

GH-91432: Implement the FOR_ITER_SET specialization #94104

Revert 30935 defer bpo45162 to 312 (

emscripten-core/emscripten#17269