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 Map.get_or_else performance #1482

Merged
merged 1 commit into from
Dec 25, 2016
Merged

Improve Map.get_or_else performance #1482

merged 1 commit into from
Dec 25, 2016

Conversation

SeanTAllen
Copy link
Member

This commit introduces a change so that, when a key isn't found during
a get_or_else call, that we do not have an error thrown. Instead,
we do a search for the key directly rather than going through the
apply method that might throw said error.

This commit introduces a change so that, when a key isn't found during
a `get_or_else` call, that we do not have an error thrown. Instead,
we do a search for the key directly rather than going through the
`apply` method that might throw said error.
@SeanTAllen SeanTAllen added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Dec 23, 2016
@jemc jemc merged commit 440da84 into master Dec 25, 2016
ponylang-main added a commit that referenced this pull request Dec 25, 2016
@SeanTAllen SeanTAllen deleted the get-or-else-perf branch April 6, 2017 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants