Improve merkle proof and tx cache performance #29

Merged
jackrobison merged 4 commits from improve-tx-caches into master 2022-05-01 01:23:52 +02:00

4 commits

Author SHA1 Message Date
Jack Robison
2f15fc56cd
reduce cache size 2022-04-30 18:17:46 -04:00
Jack Robison
6e69e1a272
remove unused attribute 2022-04-28 15:53:00 -04:00
Jack Robison
c30ef1d409
add merkle and tx lru caches to BlockchainReaderService
-updates batched `HubDB.get_transactions_and_merkles` to use and set new lru caches
-caches txs from new blocks in anticipation of those txs being requested soon
-removes _tx_and_merkle_cache
-fixes metrics namespace
2022-04-28 15:48:42 -04:00
Jack Robison
2d75d62d3f
add FastMerkleCacheItem for faster block tx merkle proofs 2022-04-28 15:44:41 -04:00