response: avoid garbage string entirely
commite40421d475def4ee9e6eb4b6ec7b00da2b5f59d5
authorEric Wong <e@80x24.org>
Sat, 21 Nov 2015 08:52:30 +0000 (21 08:52 +0000)
committerEric Wong <e@80x24.org>
Sat, 21 Nov 2015 08:54:43 +0000 (21 08:54 +0000)
tree03bc71152809d73a84fd7b0f53b1710e06174155
parent8fe5c0d649fa930c9027df42a2de9bb23f6ef8b8
response: avoid garbage string entirely

Even with frozen string literals enabled in Ruby 2.3.0dev,
dstrings still create garbage as the optimizer is
not yet smart enough to optimize it despite the limited
choice of internals being known.

Maybe in the future Ruby will be smart enough, but not yet...
lib/rainbows/response.rb