0xMiden / 0xMiden/protocol

Consider specialized fungible asset delta tracking

オープン
#3,077 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
kernels
主要言語
Rust
スター
132
フォーク
167
平均マージ
1日 23時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。