0xMiden / 0xMiden/protocol

Consider specialized fungible asset delta tracking

未关闭
#3,077 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
kernels
主要语言
Rust
星标
132
派生
167
平均合并
1 天 23 小时
30 天内合并 PR
110

描述

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_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。