[ 
https://issues.apache.org/jira/browse/THRIFT-2612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14055501#comment-14055501
 ] 

Jens Geyer commented on THRIFT-2612:
------------------------------------

+1, looks ok to me. Not tested.

> 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