0xMiden / 0xMiden/air-script

Convert consts to field elements from u32 if possible

Open
#131 0 comments 0 reactions 0 assignees View on GitHub
codegen
Dominant language
Rust
Stars
96
Forks
39
PR merge metrics
No merged PRs in 30d

Description

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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.