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

Switch to if/else instead of alias method #83

Merged
merged 1 commit into from Jan 8, 2016

Conversation

mcgain
Copy link
Contributor

@mcgain mcgain commented Oct 23, 2015

Aliasing dynamically at runtime surprised me when reading the code and I expect it will surprise others. I replaced it with a simpler if/else statement to remove the surprise factor.

This should also speed things up a (very) tiny bit, since the method cache for the class will no longer be busted each time.

@yannmh yannmh modified the milestones: 1.22.0, Next Jan 8, 2016
@yannmh
Copy link
Member

yannmh commented Jan 8, 2016

👍 I think it makes things more clear too.

Thanks @mcgain

yannmh added a commit that referenced this pull request Jan 8, 2016
Switch to if/else instead of alias method
@yannmh yannmh merged commit 8228e02 into DataDog:master Jan 8, 2016
@masci masci removed this from the Next milestone Mar 23, 2018
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

3 participants