GH-113464: Generate a more efficient JIT by brandtbucher · Pull Request #118512 · python/cpython · GitHub

github.com

Tin mới

brandtbucher:justin-refactor

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

lot of complex logic in our hot inner loop

This breaks up the JIT into smaller functions, reduces a lot of branching in hot inner loops, and generally makes the C code cleaner (and probably faster).

JIT Compilation #113464

Replace stencils with dedicated writer functions

Generate patching logic

uint64_t -> uintptr_t

uintptr_t -> uint64_t

Restore AArch64 pair folding

Add missing relocations

Use a single array of structs

Move C initializer formation to StencilGroup

Add comment on why data is first

awaiting core review

awaiting core review

View reviewed changes

Learn more about hiding disruptive comments

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

Clarify which patch functions are relaxing (and what that means)

Exaplain why GOT is commented out

View reviewed changes

: Generate a more efficient JIT (