about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-11-08 21:21:05 +0000
committerEric Wong <normalperson@yhbt.net>2011-11-08 21:21:05 +0000
commit8bc17c29ef5024802fc7207023cdaa7f1b5eda5f (patch)
treea33be8ce6c7311cf2376e62724009827be6c92d6
parent5bd27a2ff2d5b32a4d6aa3115fda63127164d1e3 (diff)
downloadmogilefs-client-8bc17c29ef5024802fc7207023cdaa7f1b5eda5f.tar.gz
Using Array#map! instead of Array#map can save us at
least one object allocation.
-rw-r--r--lib/mogilefs/mogilefs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mogilefs/mogilefs.rb b/lib/mogilefs/mogilefs.rb
index c5fc96b..1850723 100644
--- a/lib/mogilefs/mogilefs.rb
+++ b/lib/mogilefs/mogilefs.rb
@@ -85,7 +85,7 @@ class MogileFS::MogileFS < MogileFS::Client
   # Get the URIs for +key+.
 
   def get_uris(key, noverify = true, zone = nil)
-    get_paths(key, noverify, zone).map { |path| URI.parse(path) }
+    get_paths(key, noverify, zone).map! { |path| URI.parse(path) }
   end
 
   ##