You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jon Hoffman (JIRA)" <ji...@apache.org> on 2014/07/08 17:19:04 UTC

[jira] [Created] (THRIFT-2612) Java TCompactProtocol.readBinary zero copying

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)