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

fix performance by remove unnecessary O(n^2) and O(n^3) calls #271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phiresky
Copy link

tobalancemap has a huge perf issue that causes continuous almost 100% cpu use if you scan a few thousand addresses. the cause is a reduce call that creates huge amounts of objects because of a clever reduce that makes it O(n^2) instead of a simple loop. this fixes that.

profiler screenshot before:
image

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

Successfully merging this pull request may close these issues.

1 participant