Conversation
Because String#index takes O(N), where N is the second argument, while String#byteindex takes O(1).
|
We should wait until Ruby 3.1 gets EOL. |
|
@shugo I added it to a new v0.6 milestone. 🙂 |
|
@gooroodev WDYT? |
This comment was marked as spam.
This comment was marked as spam.
|
@admsev @gooroodev please don't. It's obnoxious and not very helpful. |
|
I remember now that the argument of ResponseParser#parse is usually ASCII-8BIT, so this change doesn't matter unless ResponseParser#parse is directly used with other encodings. |
|
@shugo, as you said, our inputs are always |
Because String#index takes O(N), where N is the second argument, while String#byteindex takes O(1).