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

Refactor away from method_missing for custom_query_container. #874

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

tpendragon
Copy link
Collaborator

I'm not sure what the performance will be like, but this is definitely
simpler.

I'm not sure what the performance will be like, but this is definitely
simpler.
@no-reply
Copy link
Contributor

this seems quite a bit better.

it's simpler in implementation and leaves us with a plain ruby object. i can't guarantee that the performance impact will matter, but i think it's safe to say that factoring out looping Symbol comparisons in favor of base method calls is going to be faster. 💯

@no-reply no-reply merged commit b1159f3 into main Sep 21, 2021
@tpendragon tpendragon deleted the singleton_method_query_handler branch September 21, 2021 16:37
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