[WIP] Keep pcoinsTip cache warm #6936

pull morcos wants to merge 4 commits into bitcoin:master from morcos:HotCache changing 9 files +148 −17
  1. morcos commented at 8:58 PM on November 3, 2015: member

    This builds off the score index added in #6898 and uses it to caculate the set of txin hashes that are most likely to be needed in upcoming blocks. Then when FlushStateToDisk writes the cache from pcoinsTip to the database, it'll leave the coins corresponding to these hashes in the cache.

  2. Add a score index to the mempool.
    The score index is meant to represent the order of priority for being included in a block for miners.  Initially this is set to the transactions fee rate.
    bf2c4739cc
  3. Add TxPriority class and comparator 10a6e5ebba
  4. BatchWrite can take set of hashes to leave hot in cache 4f344f58ca
  5. Caclculate set of hot hashes to leave in cache 016e4167df
  6. laanwj added the label UTXO Db and Indexes on Nov 4, 2015
  7. morcos commented at 10:37 PM on November 4, 2015: member

    oops. bug fix pushed. EDIT: nm, I just confused myself.

    I still haven't been able to demonstrate that this works as expected. It doesn't seem that populating the cache or checking it is too computationally expensive. However it doesn't seem to lead to much of a performance boost, so I need to do more benchmarking.

  8. morcos force-pushed on Nov 4, 2015
  9. morcos force-pushed on Nov 4, 2015
  10. morcos cross-referenced this on Nov 9, 2015 from issue Summary of potential performance improvements by morcos
  11. morcos cross-referenced this on Nov 9, 2015 from issue Remove UTXO cache entries when the tx they were added for is removed/does not enter mempool by TheBlueMatt
  12. morcos commented at 4:05 PM on February 4, 2016: member

    Closing for now...

  13. morcos closed this on Feb 4, 2016

  14. bitcoin locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:55 UTC