client: small speedup for list_keys_verbose
authorEric Wong <normalperson@yhbt.net>
Tue, 9 Oct 2012 00:24:43 +0000 (00:24 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 9 Oct 2012 00:33:14 +0000 (00:33 +0000)
commitf552185695b2fd80502ca27b81d09aaa3988a0fc
tree4dc9559b971b1050fdc8bbc9df0c231d48563bdd
parent436f57af99152d62c8c56fda394cbb2159747fe9
client: small speedup for list_keys_verbose

Array#pop is faster than Array#shift in most Ruby versions
as the latter may require memmove() of all elements.
Additionally, ensure ordering is correct if a backend
chokes up (for each_file_info, too).
lib/mogilefs/mogilefs.rb