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_shift_u32.rb
blob
656aa555839ddfd2b149b1f753faee929741da88
1
h = {}
2
3
(0xffff4000..0xffffffff).each do |i|
4
h[i] = nil
5
end
6
7
300000.times do
8
k, v = h.shift
9
h[k] = v
10
end