netty5/buffer/src
Fabian Lange e5386b05e6 Move Hex dump related util from ByteBufUtil to inner class
Motivation:

Initialisation of the ByteBufUtil class, a class frequently used is
delayed because a significant number of String operations is performed to
fill a HEXDUMP_ROWPREFIXES array. This array also sticks to the Strings
forever.
It is quite likely that applications never use the hexdump facility.

Modification:

Moved the static initialisation and references to a static inner class.
This delays initialisation (and memory usage) until actually needed.
The API is kept as is.

Result:

Faster startup time, less memory usage for most netty using applications.
2015-12-11 19:47:57 +01:00
..
main/java/io/netty/buffer Move Hex dump related util from ByteBufUtil to inner class 2015-12-11 19:47:57 +01:00
test/java/io/netty/buffer Add first-class Little Endian support to ByteBuf and descendants 2015-11-26 20:30:24 +01:00