ev_core: reuse buffer to avoid GC thrashing
commit810701d939114a5fcdacc55ec383de112c5e3fa4
authorEric Wong <e@yhbt.net>
Mon, 17 Jan 2011 03:42:33 +0000 (17 03:42 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 17 Jan 2011 08:42:56 +0000 (17 08:42 +0000)
treeb2e44c0cde116366b2aee309b791f4d270b69637
parentc7f4ade8edcfa7422d41c4272250b292b141b427
ev_core: reuse buffer to avoid GC thrashing

Single-threaded concurrency models can reuse a single
buffer to avoid thrashing memory and causing unnecessary
GC activity.
lib/rainbows/coolio/client.rb
lib/rainbows/ev_core.rb
lib/rainbows/event_machine/response_chunk_pipe.rb
lib/rainbows/event_machine/response_pipe.rb