neoneo-go/pkg/crypto
Roman Khimov d52e79668b hash: introduce memory-optimized merkle root hash calculation routine
NewMerkleTree is a memory hog, we can do better than that:

BenchmarkMerkle/NewMerkleTree-8                       13          88434670 ns/op        20828207 B/op     300035 allocs/op
BenchmarkMerkle/CalcMerkleRoot-8                      15          69264150 ns/op               0 B/op          0 allocs/op
2020-09-15 18:38:15 +03:00
..
hash hash: introduce memory-optimized merkle root hash calculation routine 2020-09-15 18:38:15 +03:00
keys keys: add simple LRU key cache for 1024 elements 2020-09-09 20:46:31 +03:00
verifiable.go crypto/consensus: sign hashes and cache them for consensus payloads 2020-09-09 20:46:31 +03:00