THRIFT-922. cpp: When reading strings, borrow first
authorDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:09:46 +0000 (17:09 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:09:46 +0000 (17:09 +0000)
commitea051ca793bfe68b554d4dd39b48cc237cae53d9
tree935c83bc5f0d33dac87466a281bfeb9bfd38ae9a
parentc6b4cab89c6da0272914a07b1f01491031df524f
THRIFT-922. cpp: When reading strings, borrow first

Attempt to get a pointer to the internal transport buffer before copying
onto the heap.  This improves performance TFramedTransport and
TMemoryBuffer, and with TBufferedTransport if the string fits within the
buffer.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005132 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/protocol/TBinaryProtocol.cpp
lib/cpp/src/transport/TTransport.h