repo.or.cz
/
ruby.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git]
/
benchmark
/
hash_to_proc.rb
blob
2b675bf509d973e387804b13226bcde7e9c0bfae
1
h = {}
2
3
10000.times do |i|
4
h[i] = nil
5
end
6
7
5000.times do |i|
8
[i].map(&h)
9
end