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

Don't copy vector when not needed. #48

Merged
merged 1 commit into from
Feb 12, 2020

Conversation

d-b-w
Copy link
Collaborator

@d-b-w d-b-w commented Feb 8, 2020

The copy of the bonds vector was, seriously, 10% of total
duration for some example molecules that I looked at.
(because of copies that occured while checking whether
some atom is terminal)

Also fixes an extra copy for the ring vector, but that
doesn't have an impact that I know of. It's just odd.

The copy of the bonds vector was, seriously, 10% of total
duration for some example molecules that I looked at.
(because of copies that occured while checking whether
some atom is terminal)

Also fixes an extra copy for the ring vector, but that
doesn't have an impact that I know of. It's just odd.
Copy link
Member

@JarrettSJohnson JarrettSJohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry; I just now saw this review request. I experienced this too and suggested this change as well in the other review.

@d-b-w d-b-w merged commit 91bcb20 into schrodinger:master Feb 12, 2020
@d-b-w d-b-w deleted the mild_performance branch June 1, 2020 19:17
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