algorand / algorand/go-algorand

Optimization: Leaf-hash-caching for SHA-512 Hashes

未关闭
#6,352 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
1.4k
派生
537
平均合并
1 天 7 小时
30 天内合并 PR
18

描述

Thinking about it more and talking with @algorandskiy, the easiest thing that doesn't require refactoring the merklearray package is to pre-compute all the leaf hashes as the block is built, and that saves you half the work at GenerateBlock time. Going deeper than that is trickier because of the way the leaves are indexed differently in the two implementations.. but the leaf-hash-caching would be lowest hanging fruit for a future optimization PR

_Originally posted by @cce in https://github.com/algorand/go-algorand/pull/6339#discussion_r2112495855_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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