minor garbage reductions for newer Rubies
commit89cf206bb5b30dc1f5ef17946c6a96ce957a302d
authorEric Wong <e@80x24.org>
Thu, 22 Oct 2015 21:14:45 +0000 (22 21:14 +0000)
committerEric Wong <e@80x24.org>
Thu, 22 Oct 2015 21:14:45 +0000 (22 21:14 +0000)
tree6e0f12255541235b38877960de29afd7fe2af184
parent140d0e3762869f9fa58fa0fe2b44042a387ba8bf
minor garbage reductions for newer Rubies

opt_str_freeze and String#split is optimized for single-byte splits.
Use bang methods for escaping, avoiding much garbage in tight
loops.
lib/mogilefs/backend.rb
lib/mogilefs/chunker.rb
lib/mogilefs/mogilefs.rb