Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Speedup for Tuple#to_a

  • Loading branch information...
commit ae1fad4e3f1c20ccb13ec7f1f18f66d99305173b 1 parent 46aa5c2
Dirkjan Bussink dbussink authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  kernel/common/tuple.rb
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.