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

Optimize catchpointdump utility #3561

Merged

Conversation

algorandskiy
Copy link
Contributor

Summary

  • Do not load everything into memory but write directly in into a file
    This creates extremely high number of reallocation and CPU and RAM wasting.
  • Add cmd options for downloading only (no loading), and for downloading
    from a single relay

Perf data:

param current new
RAM 5 GB 200 MB
Total time 823 s 441 s

Downloading time went down from minutes to tens of seconds.

* Do not load everything into memory but write directly in into a file
  This creates extremely high number of reallocation and CPU and RAM wasting.
* Add cmd options for downloading only (no loading), and for downloading
  from a single relay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants