String#split with a single-byte instead of regexp
commitfc8e446d5da1887044c86ed07e8cf2eee6cf2cfd
authorEric Wong <e@80x24.org>
Sun, 24 Jan 2016 09:41:09 +0000 (24 09:41 +0000)
committerEric Wong <e@80x24.org>
Sun, 24 Jan 2016 09:41:09 +0000 (24 09:41 +0000)
tree9b94f8503954b6534a77c30c6885257e6cb372a3
parent3a76adf065889787a300f5001126f3ca83731e27
String#split with a single-byte instead of regexp

This reduces memory usage as a Regexp object is hundreds
of bytes and a single-byte string object is only 40 bytes
that is deduped within the VM.
lib/dtas/format.rb
lib/dtas/partstats.rb
lib/dtas/player/client_handler.rb
lib/dtas/source/mp3gain.rb