Skip to content

Don't copy vector when not needed.#48

Merged
d-b-w merged 1 commit intoschrodinger:masterfrom
d-b-w:mild_performance
Feb 12, 2020
Merged

Don't copy vector when not needed.#48
d-b-w merged 1 commit intoschrodinger:masterfrom
d-b-w:mild_performance

Conversation

@d-b-w
Copy link
Copy Markdown
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
Copy Markdown
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