ev_core: garbage reduction
commit43d6ec33c3dd7497e27127adfffeb94722fd4b8d
authorEric Wong <normalperson@yhbt.net>
Fri, 21 Jan 2011 23:08:07 +0000 (21 15:08 -0800)
committerEric Wong <normalperson@yhbt.net>
Sat, 22 Jan 2011 00:54:02 +0000 (21 16:54 -0800)
tree7f4e519e67900f9d2d5fb9465fbf28d48a4cc1d0
parent247ce76b4aabfa42157b9cbf9ebae824819cfff6
ev_core: garbage reduction

We don't need to allocate new string objects for short-lived
strings.  We'll pay the price of a constant lookup instead.
lib/rainbows/coolio/client.rb
lib/rainbows/epoll/client.rb
lib/rainbows/ev_core.rb
lib/rainbows/event_machine/client.rb