2425262728293031323334
int count = 5000000; for (int i = 0; i < count; i++) { buf.markReaderIndex(); // read the size of the message buf.readInt(); DefaultMessageTree result = (DefaultMessageTree) codec.decode(buf); buf.resetReaderIndex(); result.setBuffer(buf); } }