THRIFT-710. java: TBinaryProtocol should access buffers directly when possible
authorBryan Duxbury <bryanduxbury@apache.org>
Tue, 2 Mar 2010 18:49:02 +0000 (18:49 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Tue, 2 Mar 2010 18:49:02 +0000 (18:49 +0000)
commita268019e85ac34b5b7a1c89d59288ecead5e6d97
tree957d8d4fdb680f901bf3cc9bd328d2be8cc5d746
parent0f52f072013e8fcb85a8382a412a764433cf0673
THRIFT-710. java: TBinaryProtocol should access buffers directly when possible

This patch makes TBinaryProtocol use direct buffer access in the relevant methods. Performance testing indicates as much as 2x speed boost, though your mileage may vary.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@918147 13f79535-47bb-0310-9956-ffa450edef68
lib/java/build.xml
lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java
lib/java/test/org/apache/thrift/test/ProtocolTestBase.java [new file with mode: 0644]
lib/java/test/org/apache/thrift/test/SerializationBenchmark.java
lib/java/test/org/apache/thrift/test/TBinaryProtocolTest.java [new file with mode: 0644]
lib/java/test/org/apache/thrift/test/TCompactProtocolTest.java