Jon Hoffman created THRIFT-2612: ----------------------------------- Summary: Java TCompactProtocol.readBinary zero copying Key: THRIFT-2612 URL: https://issues.apache.org/jira/browse/THRIFT-2612 Project: Thrift Issue Type: Improvement Components: Java - Library Affects Versions: 0.9.1 Reporter: Jon Hoffman
I noticed that TCompactProtocol.readBinary always copies bytes. TBinaryProtocol.readBinary has an optimization to just wrap the ByteBuffer from the TTransport. Is there a reason that same trick wasn't applied in TCompactProtocol? All the tests pass with the attached patch. -- This message was sent by Atlassian JIRA (v6.2#6252)