0xMiden / 0xMiden/air-script

Convert consts to field elements from u32 if possible

Đang mở
#131 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
codegen
Ngôn ngữ chính
Rust
Star
96
Fork
39
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.