python / python/cpython

Choose number of replications based on data

Aperta
#117,453 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@mdboom ci sta già lavorando.

Dal 9/4/2024.

3.13 interpreter-core performance
Lingua principale
Python
Stelle
77.2k
Fork
35.9k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

Currently we replicate the LOAD_FAST and STORE_FAST instructions 8 times (for opargs 0-7). The _INIT_CALL_PY_EXACT_ARGS micro-op gets replicated 5 times.
These numbers were chosen arbitrarily as initial values to test replication.

We should choose the number of replications based on actual data.
We should also look into replicating COPY and SWAP, as it is much simpler to do stack caching on instructions with a fixed stack effect.
E.g. SWAP indexes the stack using oparg, but SWAP_2 is simply SWAP_2(left, right -- right, left).

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.