netty5/transport/src
Trustin Lee 2cfebfe74c Reorder PlatformDependent.isRoot() check
Motivation:

isRoot() is an expensive operation. We should avoid calling it if
possible.

Modifications:

Move the isRoot() checks to the end of the 'if' block, so that isRoot()
is evaluated only when really necessary.

Result:

isRoot() is evaluated only when SO_BROADCAST is set and the bind address
is anylocal address.
2015-02-08 12:00:32 +09:00
..
main/java/io/netty Reorder PlatformDependent.isRoot() check 2015-02-08 12:00:32 +09:00
test/java/io/netty Ensure channelReadComplete() is called only when necessary 2015-02-07 16:14:36 +09:00