diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-02-05 16:16:53 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-02-05 16:17:00 -0500 |
commit | 2a30e67d20f76bbcd9a7d445f616f005316e0a1a (patch) | |
tree | b3be886f15812b3a31b93a1547d8ace323964d59 /src/bitcoin-cli.cpp | |
parent | d32528e733f2711b34dbc41fbb2bb0f153bf7e9a (diff) | |
parent | c409b1adac59329b78b8c48f131f8ca032988412 (diff) |
Merge #12330: Reduce scope of cs_main and cs_wallet locks in listtransactions
c409b1adac [rpc] Reduce scope of cs_main and cs_wallet locks in listtransactions (João Barbosa)
Pull request description:
Trivial change, no behaviour change.
Benchmark done as follow:
- run with `-regtest`
- wallet with 5000 transactions
- measured the time spent with the lock and the total time
- times are an average of 100 `listtransactions --count=...` calls
| `--count` | lock (ms) | total (ms) | saving |
|--:|--:|--:|--:|
| 10 | 0.2230 | 0.2510 | 11% |
| 100 | 2.5150 | 2.8690 | 12% |
| 1000 | 20.0320 | 23.3490 | 14% |
| 10000 | 105.2070 | 125.5310 | 16% |
Tree-SHA512: ebedfeeb4c8ad75c89128e53cae976a82967dbb5ffd129da0f7204ccf9c3c15070b3d509f3767bebd745512e410200cc546147c836e82409f95fc9b8d14fc3ed
Diffstat (limited to 'src/bitcoin-cli.cpp')
0 files changed, 0 insertions, 0 deletions