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 performance in Ruby 2.4 and later #2

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

semaperepelitsa
Copy link
Owner

I will make a release once I test this on a real project.

@semaperepelitsa semaperepelitsa self-assigned this Aug 14, 2018
@@ -20,33 +20,39 @@
#
class RubyWarningFilter < DelegateClass(IO)
attr_reader :ruby_warnings
BACKTRACE = "\tfrom"
NEWLINE = "\n"

Choose a reason for hiding this comment

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

You can keep string literals inline with # frozen_string_literal: true comment directive.

Choose a reason for hiding this comment

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

👍

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thanks, but I still prefer to keep all conditions in named constants for readability & consistency.

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.

3 participants