aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-11 02:38:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-11 02:38:20 +0000
commit165e10b6cf73f723c2f6af676b70aeb2d8cf85c9 (patch)
treedff6ad96b07191a39d8aca63b1e72b3aefab965b /internal.h
parentd93dcddd87b6cd99cfbbd1cd0b75613196eef615 (diff)
downloadruby-165e10b6cf73f723c2f6af676b70aeb2d8cf85c9.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 'internal.h')
-rw-r--r--internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index ca630ddbec..142f14dc39 100644
--- a/internal.h
+++ b/internal.h
@@ -838,6 +838,7 @@ st_table *rb_init_identtable_with_size(st_index_t size);
#define RHASH_TBL_RAW(h) rb_hash_tbl_raw(h)
VALUE rb_hash_keys(VALUE hash);
VALUE rb_hash_values(VALUE hash);
+VALUE rb_hash_rehash(VALUE hash);
#define HASH_DELETED FL_USER1
#define HASH_PROC_DEFAULT FL_USER2