Skip to content

Try to reduce GC produced while writing headers#9682

Merged
normanmaurer merged 1 commit into4.1from
reduce_gc_header_write
Oct 17, 2019
Merged

Try to reduce GC produced while writing headers#9682
normanmaurer merged 1 commit into4.1from
reduce_gc_header_write

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

Motivation:

bbc34d0 introduced correct handling of "in process" setup of streams but there is some room for improvements. Often the writeHeaders(...) is completed directly which means there is not need to create the extra listener object.

Modifications:

  • Only create the listener if we really need too.

Result:

Less GC

@normanmaurer
Copy link
Copy Markdown
Member Author

@millems @njhill PTAL... this is a followup to reduce some GC.

@normanmaurer normanmaurer added this to the 4.1.43.Final milestone Oct 17, 2019
Copy link
Copy Markdown
Member

@carl-mastrangelo carl-mastrangelo left a comment

Choose a reason for hiding this comment

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

LGTM

Motivation:

bbc34d0 introduced correct handling of "in process" setup of streams but there is some room for improvements. Often the writeHeaders(...) is completed directly which means there is not need to create the extra listener object.

Modifications:

- Only create the listener if we really need too.

Result:

Less GC
@normanmaurer normanmaurer force-pushed the reduce_gc_header_write branch from 99091f2 to 589ff34 Compare October 17, 2019 13:46
@normanmaurer normanmaurer requested a review from njhill October 17, 2019 13:46
Copy link
Copy Markdown
Member

@njhill njhill left a comment

Choose a reason for hiding this comment

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

LGTM

@normanmaurer
Copy link
Copy Markdown
Member Author

@netty-bot test this please

@normanmaurer normanmaurer merged commit 95230e0 into 4.1 Oct 17, 2019
@normanmaurer normanmaurer deleted the reduce_gc_header_write branch October 17, 2019 17:12
normanmaurer added a commit that referenced this pull request Oct 17, 2019
Motivation:

bbc34d0 introduced correct handling of "in process" setup of streams but there is some room for improvements. Often the writeHeaders(...) is completed directly which means there is not need to create the extra listener object.

Modifications:

- Only create the listener if we really need too.

Result:

Less GC
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.

3 participants