You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This merkle computation is about 25% faster than the one in 5.0, even when not using std::async. And in my tests, the async version is faster still, even with the overhead of starting a thread in std::async.
I feel we should not add code complexity unless we can show it makes a significant difference. There is a perf. test for the merkle functions in benchmarks.
This
std::async()
,spring/libraries/chain/include/eosio/chain/merkle.hpp
Lines 35 to 48 in 909603c
leads to the full creation and destruction of at least 2 threads for every block. Would be nice to figure out how to use a thread pool here.
The text was updated successfully, but these errors were encountered: