Tier Two Optimizer Eliminate Function Version Guards
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 35.9k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
Feature or enhancement
Proposal:
Suggested by @brandtbucher at the PyCon sprints
The tier two interpreter currently adds additional function function guards when it doesn't need to. We can use the function watcher to track when the function version changes and only add the first one.
Similar to the issue for type version guards https://github.com/python/cpython/issues/119258 and the implemented solution https://github.com/python/cpython/pull/119365
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
- gh-119491
- gh-119510
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia esaminando la issue correlata type-version-guard 119258, la relativa PR implementata 119365 e le PR collegate 119491 e 119510. Il risultato previsto è che l’interprete tier two utilizzi il function watcher, così da aggiungere solo il primo function version guard invece di guard ridondanti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- compilers, performance
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100