Permalink
Browse files

Speedup for Tuple#to_a

  • Loading branch information...
1 parent 46aa5c2 commit ae1fad4e3f1c20ccb13ec7f1f18f66d99305173b @dbussink dbussink committed Apr 18, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 kernel/common/tuple.rb
View
@@ -97,10 +97,9 @@ def ===(other)
end
def to_a
- ary = []
+ ary = Array.allocate
ary.tuple = dup
ary.total = fields
- ary.start = 0
return ary
end

0 comments on commit ae1fad4

Please sign in to comment.