ev_core: garbage reduction with const strings
commitb788a0f1eedfb358f9d57f40cec6ba0960dea3fe
authorEric Wong <normalperson@yhbt.net>
Fri, 7 Jan 2011 18:02:52 +0000 (7 10:02 -0800)
committerEric Wong <normalperson@yhbt.net>
Fri, 7 Jan 2011 18:02:52 +0000 (7 10:02 -0800)
treed58b3631827dc9ebe8998c0c5ee2d3c1532998dd
parent370fb8c7811704ed65384f599b52ac1b6d0c36c9
ev_core: garbage reduction with const strings

Reading headers is common and we don't want to create new String
objects (even if they're tiny or copy-on-write) for the GC to
munch on.
lib/rainbows/ev_core.rb
lib/rainbows/response.rb