Skip to content

Reuse Http2FrameStreamEvent instances to reduce GC pressure - #9392

Merged
normanmaurer merged 2 commits into
4.1from
reduce_gc
Jul 21, 2019
Merged

normanmaurer merged 2 commits into
4.1from
reduce_gc

Conversation

@normanmaurer

Copy link
Copy Markdown
Member

Motivation:

We can easily reuse the Http2FrameStreamEvent instances and so reduce GC pressure as there may be multiple events per streams over the life-time.

Modifications:

Reuse instances

Result:

Less allocations

Motivation:

We can easily reuse the Http2FrameStreamEvent instances and so reduce GC pressure as there may be multiple events per streams over the life-time.

Modifications:

Reuse instances

Result:

Less allocations
@normanmaurer

Copy link
Copy Markdown
Member Author

@netty-bot test this please

@njhill njhill left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM with minor suggestion

@normanmaurer
normanmaurer merged commit 04afa3a into 4.1 Jul 21, 2019
@normanmaurer
normanmaurer deleted the reduce_gc branch July 21, 2019 18:35
normanmaurer added a commit that referenced this pull request Jul 21, 2019
Motivation:

We can easily reuse the Http2FrameStreamEvent instances and so reduce GC pressure as there may be multiple events per streams over the life-time.

Modifications:

Reuse instances

Result:

Less allocations
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