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_ident_sym.rb
blob
4c81e3d28e2903474b2c99ef3d1aaa7d520bf142
1
h = {}.compare_by_identity
2
syms = ('a'..'z').to_a.map(&:to_sym)
3
syms.each { |s| h[s] = s }
4
200_000.times { syms.each { |s| h[s] } }