netty5/common/src
nickhill 06f3574e46 Don't calculate max direct memory twice in PlatformDependent
Motivation:

I'm not sure if trivial changes like this are interesting :-) But I
noticed that the PlatformDependent.maxDirectMemory0() method is called
twice unnecessarily during static initialization (on the default path at
least).

Modifications:

Use constant MAX_DIRECT_MEMORY already set to the same value instead of
calling maxDirectMemory0() again.

Result:

A surely imperceivable reduction in operations performed at startup.
2018-06-26 13:58:54 +02:00
..
main Don't calculate max direct memory twice in PlatformDependent 2018-06-26 13:58:54 +02:00
test Allow to schedule tasks up to Long.MAX_VALUE (#7972) 2018-05-30 11:11:42 +02:00