HomePhabricator

Optimize JSON-RPC getblockhash
1be064190ed0Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Optimize JSON-RPC getblockhash

  • If the height is in the first half, start at the genesis block and go up, rather than at the top
  • Cache the last lookup and use it as a reference point if it's close to the next request, to make linear lookups always fast

Details

Provenance
Luke Dashjr <luke-jr+git@utopios.org>Authored on Jul 19 2012, 20:06
deadalnixPushed on May 14 2017, 22:04
Parents
rABC4060d64fc9de: Fix Qt build on OSX
Branches
Unknown
Tags
Unknown

Event Timeline

Luke Dashjr <luke-jr+git@utopios.org> committed rABC1be064190ed0: Optimize JSON-RPC getblockhash (authored by Luke Dashjr <luke-jr+git@utopios.org>).Aug 1 2012, 18:23