Skip to content

Simplify ByteBufInputStream.readLine() logic#8380

Merged
normanmaurer merged 1 commit intonetty:4.1from
njhill:bbis-simplify
Oct 13, 2018
Merged

Simplify ByteBufInputStream.readLine() logic#8380
normanmaurer merged 1 commit intonetty:4.1from
njhill:bbis-simplify

Conversation

@njhill
Copy link
Copy Markdown
Member

@njhill njhill commented Oct 12, 2018

Motivation:

While looking at the nice optimization done in #8347 I couldn't help noticing that the logic could be simplified further. Apologies if this is just my OCD and inappropriate for a PR!

Modifications:

Reduce amount of code used for ByteBufInputStream.readLine()

Result:

Slightly smaller and simpler code

Motivation:

While looking at the nice optimization done in
netty#8347 I couldn't help noticing the
logic could be simplified further. Apologies if this is just my OCD and
inappropriate!

Modifications:

Reduce amount of code used for ByteBufInputStream.readLine()

Result:

Slightly smaller and simpler code
@netty-bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

@normanmaurer
Copy link
Copy Markdown
Member

@franz1981 can you check

@franz1981
Copy link
Copy Markdown
Contributor

It looks fine to me!
Having a smaller and simpler code is always wellcome :)

@normanmaurer
Copy link
Copy Markdown
Member

@netty-bot test this please

@normanmaurer normanmaurer merged commit 7062cee into netty:4.1 Oct 13, 2018
@normanmaurer normanmaurer added this to the 4.1.31.Final milestone Oct 13, 2018
@normanmaurer
Copy link
Copy Markdown
Member

@njhill thanks!

@njhill njhill deleted the bbis-simplify branch March 8, 2019 05:32
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.

4 participants