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

Speeding up the atom type factory getAtomType(String name) and getAtomTypes() #170

Merged
merged 1 commit into from Nov 3, 2015

Conversation

egonw
Copy link
Member

@egonw egonw commented Nov 1, 2015

  • now uses a Map for faster look up by atom type name
  • now uses a new ImmutableAtomType so that cloning is no longer needed

The getAtomTypes() is notably faster; anecdotal local measurements show a factor 35.

See https://github.com/ideaconsult/examples-cdk/tree/master/cdk-jmh

…mTypes().

- now uses a Map for faster look up by atom type name
- now uses a new ImmutableAtomType so that cloning is no longer needed

The getAtomTypes() is notably faster; anecdotal local measurements show a factor 35.
johnmay added a commit that referenced this pull request Nov 3, 2015
Speeding up the atom type factory getAtomType(String name) and getAtomTypes()
@johnmay johnmay merged commit 774e402 into cdk:master Nov 3, 2015
@johnmay
Copy link
Member

johnmay commented Nov 3, 2015

Looks good - added two minor comments but all okay.

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.

None yet

2 participants