Files
dragonx/src/main.cpp
DeckerSU 103bca1ba7 LoadBlockIndexDB speed-up for non-LWMAPOS chains (x5 perfomance boost)
seems we had CChainPower classes compare here from Verus, it's slow, bcz of hard
arith_uint256 math in bool operator<(const CChainPower &p1, const CChainPower &p2),
this slows down setBlockIndexCandidates.insert operations in LoadBlockIndexDB(),
so, for faster block index db loading we will use check from Verus only for LWMAPOS
enabled chains.

perfomance test (daemon load time from start):

without fix - 3m42sec
   with fix - 39sec
2019-06-16 12:07:35 +03:00

360 KiB