favor Hash#include? for some existence checks
commit58dbf0952b94b01d4a434fa880755f9a320c6103
authorEric Wong <normalperson@yhbt.net>
Fri, 7 Jan 2011 18:27:30 +0000 (7 10:27 -0800)
committerEric Wong <normalperson@yhbt.net>
Fri, 7 Jan 2011 21:43:16 +0000 (7 13:43 -0800)
treef9fa4be59dc9384c6abb60fab9732155e13c2c4d
parent2d2416daa554dd530b5f2cfeffe3e0e31505c824
favor Hash#include? for some existence checks

Hash#[] is slightly slower on the miss case due to calling
Hash#default (but faster for the hit case, probably because it
is inlined in 1.9).
lib/rainbows/dev_fd_response.rb
lib/rainbows/ev_core.rb