Skip to content

Optimize Block.MerkleRoot by replacing tree.PushObject calls

Christopher Schinnerl requested to merge marcinja:merkle-root-optimization into master

Created by: marcinja

Optimized MerkleRoot computation for transactionpool tests. Specifically running the profiler for TestFeeEstimation shows ~900 MB used for runtime.convT2E which can be reduced to ~415 MB with the changes.

Before: before

After: after

Merge request reports