rb: Buffer the slice!s in MemoryBuffer for a significant performance increase [THRIFT-63]
commitb5549634eb5bbedcb8d8442b391e9cb271499d4e
authorkclark <kclark@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 8 Jul 2008 23:20:15 +0000 (8 23:20 +0000)
committerkclark <kclark@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 8 Jul 2008 23:20:15 +0000 (8 23:20 +0000)
treeca46f98ac1552800237e6b5ed436945b354922eb
parent9d4a144e5e3b8231681d8aeaf7da0eead97067bb
rb: Buffer the slice!s in MemoryBuffer for a significant performance increase [THRIFT-63]

Author: Kevin Ballard <kevin@rapleaf.com>

Currently it buffers up to 4kB before throwing away the data.
Tests with 1MB shows the exact same performance characteristics.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@675049 13f79535-47bb-0310-9956-ffa450edef68
lib/rb/lib/thrift/transport.rb
lib/rb/spec/transport_spec.rb