[ 
https://issues.apache.org/jira/browse/THRIFT-2612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jon Hoffman updated THRIFT-2612:
--------------------------------

    Attachment: THRIFT-2612.1.patch

> 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
>         Attachments: THRIFT-2612.1.patch
>
>
> 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)

Reply via email to