Skip to content

Improve GzipReader#gets performance.#739

Merged
1 commit merged intojruby:masterfrom
grddev:gzipreader_performance
May 17, 2013
Merged

Improve GzipReader#gets performance.#739
1 commit merged intojruby:masterfrom
grddev:gzipreader_performance

Conversation

@grddev
Copy link
Contributor

@grddev grddev commented May 15, 2013

Previously checked the whole line for the separator after each character
read. The new version instead just checks whether the line read so far
ends with the separator.

Note that the current version of ByteList#startsWith/endsWith assumes
the index and byte list arguments are valid, which means we must not
call the method before the line is long enough.

Previously checked the whole line for the separator after each character
read. The new version instead just checks whether the line read so far
ends with the separator.

Note that the current version of ByteList#startsWith/endsWith assumes
the index and byte list arguments are valid, which means we must not
call the method before the line is long enough.
@ghost ghost merged commit adc4049 into jruby:master May 17, 2013
@headius
Copy link
Member

headius commented May 17, 2013

Thanks!

This pull request was closed.
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