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

Performance #170

Merged
merged 15 commits into from
Oct 17, 2022
Merged

Performance #170

merged 15 commits into from
Oct 17, 2022

Conversation

kddnewton
Copy link
Member

No description provided.

@kddnewton kddnewton merged commit 727b991 into main Oct 17, 2022
@kddnewton kddnewton deleted the performance branch October 17, 2022 18:10
# In case we're running on an older Ruby version, we polyfill it here.
unless :+.respond_to?(:name)
class Symbol # rubocop:disable Style/Documentation
def name
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum, that polyfill might trick other gems or code into thinking they are on 3.0. Have you considered using a refinement here? I generally avoid them like the plague, but for unobstrusive polyfill I found them relatively useful.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh yeah I can make it a refinement.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out I stopped using it in as many places as I thought, this is much better now

#172

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