netty5/transport
Norman Maurer 948d4a9ec5
Minimize memory footprint for AbstractChannelHandlerContext for handlers that execute in the EventExecutor. (#8786)
Motivation:

We cache the Runnable for some tasks to reduce GC pressure in 4 different fields. This gives overhead in terms of memory usage in all cases, even if we always execute in the EventExecutor (which is the case most of the times).

Modifications:

Move the 4 fields to another class and only have one reference to this in AbstractChannelHandlerContext. This gives a small overhead in the case of execution that is done outside of the EventExecutor but reduce memory footprint in the more likily execution case.

Result:

Less memory used per AbstractChannelHandlerContext in most cases.
2019-01-28 19:45:38 +01:00
..
src Minimize memory footprint for AbstractChannelHandlerContext for handlers that execute in the EventExecutor. (#8786) 2019-01-28 19:45:38 +01:00
pom.xml [maven-release-plugin] prepare for next development iteration 2019-01-21 12:26:44 +00:00
test.log Correctly implement SelectedSelectionKeySet.Iterator remove() 2018-09-01 08:59:08 +02:00