Ravencoin icon indicating copy to clipboard operation
Ravencoin copied to clipboard

Performance bug for command listadressesbyassets with totalCount=true

Open dicklarsson opened this issue 1 year ago • 0 comments

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:

  1. Run command without totalCount flag listaddressesbyasset FREN
  2. 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

dicklarsson avatar Dec 18 '23 18:12 dicklarsson