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

⚡ improve efficient of function CalculateGraphDistance() #13

Merged
merged 1 commit into from
Dec 7, 2020

Conversation

kotori-y
Copy link
Contributor

In original function, a loop was used for counting the frequency of each element in the Distance. While use this function to C=CCCCCCCCCC(=O)[O-].[Na+], the times of loop can hit 100 millions.

Here I use the class Counter from collections instead of loop, which can significantly improve the efficient.

@gadsbyfly gadsbyfly merged commit 60754cb into gadsbyfly:master Dec 7, 2020
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.

2 participants