Merge #12639: Reduce cs_main lock in listunspent
pull/585/heada59dac3
refactor: Avoid extra lookups of mapAddressBook in listunspent RPC (João Barbosa)d76962e
rpc: Reduce cs_main lock in listunspent (João Barbosa) Pull request description: On my system, where the wallet has 10000 unspents, the `cs_main` lock duration changed from 191ms to 36ms. The loop that generates the response takes around 155ms. So, the lock duration is reduced to around 20%. Tree-SHA512: ddaae591f39da59a9d1a8e9ffe773d857687789476f566ca273d310ad531da6dacff80cac69f3334c601c251ac7c5ed4136656c725aa3d611c6bbf734111946e
commit
7eb7076f70
Loading…
Reference in new issue