HomePhabricator

IsInitialBlockDownload: usually avoid locking
f0fdda0181e1Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

IsInitialBlockDownload: usually avoid locking

Optimistically test the latch bool before taking the lock.
For all IsInitialBlockDownload calls after the first to return false,
this avoids the need to lock cs_main.

Details

Provenance
Kaz Wesley <keziahw@gmail.com>Authored on Apr 27 2016, 00:21
deadalnixPushed on May 14 2017, 22:04
Parents
rABC3b9a0bf41f23: Merge #7840: Several performance and privacy improvements to inv/mempool…
Branches
Unknown
Tags
Unknown

Event Timeline

Kaz Wesley <keziahw@gmail.com> committed rABCf0fdda0181e1: IsInitialBlockDownload: usually avoid locking (authored by Kaz Wesley <keziahw@gmail.com>).Jun 5 2016, 05:18