fiber/io: reuse buffer in Rainbows::Fiber::IO#each
commit48f6337c6ecc4f0069f147d6bbaafed969e1d19a
authorEric Wong <normalperson@yhbt.net>
Thu, 29 Jul 2010 08:06:57 +0000 (29 08:06 +0000)
committerEric Wong <normalperson@yhbt.net>
Thu, 29 Jul 2010 08:06:57 +0000 (29 08:06 +0000)
tree4b6fe60a29a1e2d6cc8136750703f24e3d838953
parent5479b15c766204e31495e87a64fa689141cc38a3
fiber/io: reuse buffer in Rainbows::Fiber::IO#each

This makes life easier for the lazy GC when proxying
large responses (and also improves memory locality).
lib/rainbows/fiber/io.rb