RCasatta / blocks_iterator

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

Consider "hashing tx" stage #53

Closed RCasatta closed 2 years ago

RCasatta commented 2 years ago

As shown in perf report here https://github.com/rust-bitcoin/bitcoin_hashes/issues/160

in the memory case a lot of time is spent in hashing bitcoin tx, consider having a pipeline stage creating the hash of tx and storing it in the BlockExtra so that following stages could simply use the cached value

dpc commented 2 years ago

Smart!

RCasatta commented 2 years ago

Done in https://github.com/RCasatta/blocks_iterator/pull/54