Thrift: Some sort of Ruby performance fix.

Reviewed By: mcslee

Test Plan: None.

Revert Plan: ok

Other Notes:
Submitted by Dave Simpson.
Approved by Kevin Clark.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665441 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/lib/thrift/transport/ttransport.rb b/lib/rb/lib/thrift/transport/ttransport.rb
index 01de06e..781db83 100644
--- a/lib/rb/lib/thrift/transport/ttransport.rb
+++ b/lib/rb/lib/thrift/transport/ttransport.rb
@@ -43,7 +43,7 @@
     while (have < sz)
       chunk = read(sz - have)
       have += chunk.length
-      buff += chunk
+      buff << chunk
     end
     return buff
   end
@@ -92,7 +92,7 @@
   end
 
   def write(buf)
-    @wbuf += buf
+    @wbuf << buf
   end
 
   def flush()
@@ -167,7 +167,7 @@
       buf = buf.slice(0,sz)
     end
 
-    @wbuf += buf
+    @wbuf << buf
 
   end
 
@@ -181,7 +181,7 @@
     end
 
     out = [@wbuf.length].pack('N')
-    out += @wbuf
+    out << @wbuf
     @transport.write(out)
     @transport.flush
     @wbuf = ''
@@ -260,7 +260,7 @@
   end
 
   def write(wbuf)
-    @buf  += wbuf
+    @buf  << wbuf
     @wpos += wbuf.length()
   end