Ravencoin
Ravencoin copied to clipboard
Performance bug for command listadressesbyassets with totalCount=true
Performance bug for command listadressesbyassets.
If I run listaddressesbyasset
with second argument (totalCount) set to true it takes 90 times longer than if I skip the totalCount flag.
If I do this in a loop my node dies.
Yes this bug is easy to reproduce
If so, please list the steps to reproduce below:
- Run command without totalCount flag
listaddressesbyasset FREN
- Run command with totalCount flag set to true
listaddressesbyasset FREN true
Expected behaviour
The command listaddressesbyasset with second argument (totalCount) set to true should not be that much slower than skipping the second argument.
Actual behaviour
If I run listaddressesbyasset
with second argument (totalCount) set to true it takes 90 times longer than if I skip the totalCount flag.
If I do this in a loop my node dies.
Screenshots.
If the issue is related to the GUI, screenshots can be added to this issue via drag & drop.
What version of Ravencoin are you using?
Version 4.6.1 and 4.3.2.1
Machine specs:
- OS: Ubuntu (same on Windows)
- CPU:
- RAM: 32gb
- Disk size: 1TB
- Disk Type SDD:
Any extra information that might be useful in the debugging process.
I just timed the procedures, using RPC and logged to the console.
Without totalCount: 93.875ms
With totalCount: 8.430s