diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-11 02:38:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-11 02:38:20 +0000 |
commit | 39e8561bd0411d0faa52a712ac582fa462bcf1ab (patch) | |
tree | dff6ad96b07191a39d8aca63b1e72b3aefab965b /hash.c | |
parent | 6471e6fdfad5eaccbb6551f27ab637940e7bf1a6 (diff) | |
download | ruby-39e8561bd0411d0faa52a712ac582fa462bcf1ab.tar.gz |
compile.c: rehash cdhash
* compile.c (iseq_compile_each, ibf_load_object_hash): rehash
case-dispatch hash to reduce collisions.
http://d.hatena.ne.jp/ku-ma-me/20151210
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -734,7 +734,7 @@ rb_hash_rehash_i(VALUE key, VALUE value, VALUE arg) * h[a] #=> 100 */ -static VALUE +VALUE rb_hash_rehash(VALUE hash) { VALUE tmp; |