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

Reduce allocations and retained memory in uri/common.rb #1801

Closed
wants to merge 1 commit into from

Conversation

SamSaffron
Copy link

Reduce allocations in uri/common.rb

Opening a ticket on redmine to discuss

end
TBLENCWWWCOMP_[' '] = '+'
TBLENCWWWCOMP_[' '] = -'+'
Copy link
Member

@k0kubun k0kubun Jan 27, 2018

Choose a reason for hiding this comment

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

Why do you call String#-@ in addition to specifying # frozen_string_literal: true here? The '+' literal should be frozen and de-duplicated without calling it.

@k0kubun
Copy link
Member

k0kubun commented Jan 27, 2018

The failing test should be fixed.

@SamSaffron
Copy link
Author

OK, made a ticket in redmine here: https://bugs.ruby-lang.org/issues/14410

I think I corrected both issues @k0kubun

@hsbt
Copy link
Member

hsbt commented Jan 29, 2018

merged at 26b3dc4

@hsbt hsbt closed this Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants