RCasatta / blocks_iterator

Iterate over bitcoin blocks
MIT License
51 stars 5 forks source link

Block extra new format, pre compute txids #54

Closed RCasatta closed 2 years ago

RCasatta commented 2 years ago

close #52 #53

bring significant speed up!

Speed up is most noticeable in the memory case and in the first run of the db case. When the db has cached values no txid computation is done up to the last processed height so no significant improvement if the last processed height is near the current height. However, downstream consumer almost always compute txids, and now they have it pre-cached so improvement is present also there.