0xMiden / 0xMiden/air-script

Convert consts to field elements from u32 if possible

Aperta
#131 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
codegen
Lingua principale
Rust
Stelle
96
Fork
39
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

If we know that a constant value is smaller than u32 we should try to use conversions from u32. For example: E::from(2_u32) instead of E::from(2_u64) as we may come up with a more efficient reduction for smaller values later on.

_Originally posted by @bobbinth in https://github.com/0xPolygonMiden/air-script/pull/58#discussion_r1022350246_

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.