carlw
01/12/2019, 12:53 PMaltavir
01/12/2019, 1:00 PMByteBuffer byteBuffer = ByteBuffer.wrap(a) instead of ByteBuffer byteBuffer = ByteBuffer.allocate(2); byteBuffer.put( a );. In this case you skip one additional memory allocation, you just reuse memory under a. For large binaries additional allocation could be expensive.carlw
01/12/2019, 2:20 PMhudsonb
01/12/2019, 3:11 PM