DMDcoin / diamond-node

bit.diamonds node software for network version 4
GNU General Public License v3.0
0 stars 3 forks source link

reduce pruning overhead #79

Open SurfingNerd opened 8 months ago

SurfingNerd commented 8 months ago

try and fail of pruning costs performance for nothing. can we reduce this tries ?

cryptonit commented 8 months ago

it looks like the check is made each block so its no issue performance wise on a sync node but it is on a syncing node as a syncing node important many many blocks

i suggest to just make a little change like whena new block is found check if its blocknumber end with 00 and only make a pruning attempt then

should be easy codechange and reduce performance loss on sync nodes by 99%