netty5/buffer/src/test/java/io
Francesco Nigro 83dc3b503e ByteBufInputStream is always allocating a StringBuilder instance (#8347)
Motivation:

Avoid creating any StringBuilder instance if
ByteBufInputStream::readLine isn't used

Modifications:

The StringBuilder instance is lazy allocated on demand and
are added new test case branches to address the increased
complexity of ByteBufInputStream::readLine

Result:

Reduced GC activity if ByteBufInputStream::readLine isn't used
2018-10-11 14:56:29 +08:00
..
netty/buffer ByteBufInputStream is always allocating a StringBuilder instance (#8347) 2018-10-11 14:56:29 +08:00