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

Avoid Kernel#send() #368

Merged
merged 1 commit into from Feb 28, 2022
Merged

Conversation

jhawthorn
Copy link
Contributor

Previously all timecop instance methods were private and we would call them from the class methods using send(). This commit achieves a similar effect (making the instance methods inaccessible to users) by making instance private.

Using standard method calls instead of send should be slightly faster as it reduces method lookups.

Previously all Timecop instance methods were private and we would call
them from the class methods using send(). This commit achieves a similar
effect (making the instance methods inaccessible to users) by making
`instance` private.

Using standard method calls instead of send should be slightly faster as
it reduces method lookups.
@joshuacronemeyer
Copy link
Collaborator

This is nice.

@joshuacronemeyer joshuacronemeyer merged commit 8d82f67 into travisjeffery:master Feb 28, 2022
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