Closed rahulghangas closed 3 years ago
@rahulghangas please add the benchmark results to the description, would love to see some concrete numbers.
Added initial benchmark results to description
Closing this, changes have been integrated into the experimental branch
Calling
Signatory()
on an address is an expensive operation and is called various times in the function parameter forsort.Search()
. However, since we already store the signatories in theaddrsBySignatories
map, we can make the lookup for signatories significantly cheaper by makingaddrsBySignatories
a bidirectional hashMap.Gives ~10x performance gain for both
InsertAddr
andDeleteAddr
Benchmark results of PR (using Bi directional hashmap)
vs Becnhmark results of master