rb: Buffer the slice!s in MemoryBuffer for a significant performance increase [THRIFT-63]
authorKevin Clark <kclark@apache.org>
Tue, 8 Jul 2008 23:20:15 +0000 (23:20 +0000)
committerKevin Clark <kclark@apache.org>
Tue, 8 Jul 2008 23:20:15 +0000 (23:20 +0000)
commitbf2ff249b97b31822cb02c4850dae15966b70a6f
treeca46f98ac1552800237e6b5ed436945b354922eb
parent4bd8916b1257378f8173c4ada41b4606e9c0226b
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