algorand / algorand/go-algorand

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

Abierto
#6,352 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Go
Estrellas
1.4k
Forks
537
Merge medio
1 d 6 h
PR fusionados (30 d)
17

Descripción

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_

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.