bpo-46841: Inline cache for `BINARY_SUBSCR`. by markshannon · Pull Request #31618 · python/cpython · GitHub

github.com

Tin mới

faster-cpython:inline-cache-binary-subscr

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

Use inline cache for BINARY_SUBSCR. Work in progress.

Merge branch 'main' into inline-cache-binary-subscr

Finish inlining cache for .

awaiting core review

awaiting core review

bpo-46841: Move the cache for LOAD_GLOBAL inline. #31575

View reviewed changes

Learn more about hiding disruptive comments

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

Address review comments.

Remove per-code-object-cache and add small per-heap-type cache.

faster-cpython/ideas#263

I've added some comments on about how to handle pointers to faster-cpython/ideas#263 and removed the need for a per-code-object cache from this PR and shrinks the inline cache a bit.

Remove unused parameter.

Remove unused code.

Merge branch 'main' into inline-cache-binary-subscr

Inline caching faster-cpython/ideas#310

Inline bytecode caches #90997