Improve CheckBlockIndex performance #11563

pull promag wants to merge 2 commits into bitcoin:master from promag:2017-10-improve-checkblockindex changing 1 files +20 −23
  1. promag commented at 12:50 AM on October 26, 2017: member

    This gives a boost to the process as it doesn't make std::multimap lookups. Obviously there is a memory tradeoff which I didn't measured yet. However the weight of CheckBlockIndex goes from around 9% to 3% (measured in Instruments in regtest with 10000 blocks).

  2. Validate genesis out of loop in CheckBlockIndex 7fe1e35c4d
  3. fanquake added the label Validation on Oct 26, 2017
  4. Cache siblings on depth first search in CheckBlockIndex c13d38f433
  5. promag force-pushed on Oct 26, 2017
  6. promag commented at 1:04 AM on October 26, 2017: member

    Ping @sipa, do you think the memory tradeoff can pay off?

  7. fanquake requested review from sipa on Nov 9, 2017
  8. promag commented at 7:14 PM on February 8, 2018: member

    Needs benchmarking.

  9. promag closed this on Feb 8, 2018

  10. promag deleted the branch on Feb 8, 2018
  11. DrahtBot locked this on Sep 8, 2021
Contributors


sipa


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-04-22 00:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me