netty5/buffer/src/test/java/io
Norman Maurer 371c0ca0f8 Eliminate unnessary wrapping when call ByteBuf.asReadOnly() in some cases
Motivation:

We can eliminate unnessary wrapping when call ByteBuf.asReadOnly() in some cases to reduce indirection.

Modifications:

- Check if asReadOnly() needs to create a new instance or not
- Add test cases

Result:

Less object creation / wrapping.
2017-02-14 08:35:16 +01:00
..
netty/buffer Eliminate unnessary wrapping when call ByteBuf.asReadOnly() in some cases 2017-02-14 08:35:16 +01:00