neoneo-go/pkg/crypto/hash
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.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
hash_test.go util: add LE suffix to Uint256 methods 2019-12-06 12:16:55 +03:00
merkle_bench_test.go hash: introduce memory-optimized merkle root hash calculation routine 2020-09-15 18:38:15 +03:00
merkle_tree.go hash: introduce memory-optimized merkle root hash calculation routine 2020-09-15 18:38:15 +03:00
merkle_tree_test.go hash: introduce memory-optimized merkle root hash calculation routine 2020-09-15 18:38:15 +03:00