use opt_str_freeze to avoid allocations in a few places
commit8307157e7381f24b2833d3e3fdf084555265f420
authorEric Wong <e@80x24.org>
Thu, 29 Dec 2016 07:31:40 +0000 (29 07:31 +0000)
committerEric Wong <e@80x24.org>
Thu, 29 Dec 2016 07:31:40 +0000 (29 07:31 +0000)
tree504aade3405a391d222b77571b145e8322dc2829
parent6f35eb68c0b45aa64da442022cda82b7df9194c4
use opt_str_freeze to avoid allocations in a few places

None of these are too performance critical, but err on
the safe side and avoid allocations whenever possible.
lib/mogilefs/http_file.rb
lib/mogilefs/new_file/stream.rb
lib/mogilefs/new_file/writer.rb