-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: master
Are you sure you want to change the base?
Conversation
lib/ruby_warning_filter.rb
Outdated
@@ -20,33 +20,39 @@ | |||
# | |||
class RubyWarningFilter < DelegateClass(IO) | |||
attr_reader :ruby_warnings | |||
BACKTRACE = "\tfrom" | |||
NEWLINE = "\n" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
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.
I will make a release once I test this on a real project.