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

Jens Geyer resolved THRIFT-2612.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9.2
         Assignee: Jens Geyer

Committed, thanks!

> 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
>            Assignee: Jens Geyer
>             Fix For: 0.9.2
>
>         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