THRIFT-922. cpp: Add shortcutted version of readAll() in TBufferBase
authorDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:09:47 +0000 (17:09 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:09:47 +0000 (17:09 +0000)
commit72fd0b415f7fe4f84988b52346b380f17b528c90
tree237529b51ee0f6a66d94d6694785f2881c8cbf09
parentea051ca793bfe68b554d4dd39b48cc237cae53d9
THRIFT-922. cpp: Add shortcutted version of readAll() in TBufferBase

Just perform a memcpy() if all of the requested data is available in the
buffer.  This improves performance a little in the common case.  It has
a bigger impact with the upcoming template changes.

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