Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance bug for command listadressesbyassets with totalCount=true #1241

Open
dicklarsson opened this issue Dec 18, 2023 · 0 comments
Open

Comments

@dicklarsson
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant