kcar/response: remove const optimizations for Ruby < 2.1
commit522ded71a61549d8222105f99e408fd4622aba14
authorEric Wong <e@80x24.org>
Tue, 21 Jul 2015 21:03:48 +0000 (21 21:03 +0000)
committerEric Wong <e@80x24.org>
Tue, 21 Jul 2015 21:03:48 +0000 (21 21:03 +0000)
tree3148408e7db998b889ed9a5b68af084b24dc93c2
parentd6f0635e0afd50c44a9fa7f7df4033232588057a
kcar/response: remove const optimizations for Ruby < 2.1

Ruby 2.1 and later emits opt_str_freeze to deduplicate literal
String#freeze calls, leading to even better performance than
the overhead from constant lookups (which have inline cache
overhead).
lib/kcar/response.rb