about summary refs log tree commit homepage
path: root/lib/dtas/format.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-01-24 09:41:09 +0000
committerEric Wong <e@80x24.org>2016-01-24 09:41:09 +0000
commitfc8e446d5da1887044c86ed07e8cf2eee6cf2cfd (patch)
tree9b94f8503954b6534a77c30c6885257e6cb372a3 /lib/dtas/format.rb
parent3a76adf065889787a300f5001126f3ca83731e27 (diff)
downloaddtas-fc8e446d5da1887044c86ed07e8cf2eee6cf2cfd.tar.gz
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.
Diffstat (limited to 'lib/dtas/format.rb')
-rw-r--r--lib/dtas/format.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/format.rb b/lib/dtas/format.rb
index 001a444..f378f8e 100644
--- a/lib/dtas/format.rb
+++ b/lib/dtas/format.rb
@@ -164,7 +164,7 @@ class DTAS::Format # :nodoc:
     end
 
     # deal with HH:MM:SS
-    t = time.split(/:/)
+    t = time.split(':')
     raise ArgumentError, "Bad time format: #{hhmmss}" if t.size > 3
 
     mult = 1