0xMiden / 0xMiden/rust-sdk

Avoid cloning `Account` in `SqliteStore` functions

オープン
#1,207 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Rust
スター
78
フォーク
129
平均マージ
4日 14時間
マージ済み PR(30日)
52

説明

Some `SqliteStore` functions receive a reference to an `Account`. These usually need get cloned internally because of moving closures.

We should change the `Store` interface to take ownership of the accounts or receive an `Arc` to avoid deep cloning

> Maybe not as part of this, but I wonder if we could use `Arc` to avoid doing deep clones of potentially large objects

_Originally posted by @igamigo in https://github.com/0xMiden/miden-client/pull/1164#discussion_r2307632644_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。