0xMiden / 0xMiden/protocol

Consider specialized fungible asset delta tracking

Đang mở
#3,077 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
kernels
Ngôn ngữ chính
Rust
Star
132
Fork
167
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
110

Mô tả

I was thinking more about reducing the number of cycles as we could maybe do something clever with the amounts - like:

```
let delta = final - initial
let is_negative = delta < 0
let delta_op = is_negative + 1
let amount_delta = delta * (1 - 2 * is_negative)
```

But I'm actually not sure how much this is saving. We can leave things as is and create an issue to investigate this optimization later.

_Originally posted by @bobbinth in https://github.com/0xMiden/protocol/pull/3038#discussion_r3391667005_

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.