From a4a2b9be7a55bb61d17cf9673ed0d2a93bb52d31 Mon Sep 17 00:00:00 2001 From: normal Date: Thu, 11 Sep 2014 21:57:34 +0000 Subject: string.c (Init_frozen_strings): use st_init_table_with_size All symbols have an fstring entry, and we initialize symbol tables with 1000 bins. This reduces resizes during startup. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ string.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a9a00600a2..2905f2b86e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Sep 12 06:55:40 2014 Eric Wong + + * string.c (Init_frozen_strings): use st_init_table_with_size + Fri Sep 12 06:15:37 2014 NARUSE, Yui * string.c (sym_find): remove Symbol.find because we have Symbol GC now. diff --git a/string.c b/string.c index bb97243acc..05e4e802cd 100644 --- a/string.c +++ b/string.c @@ -8948,5 +8948,5 @@ void Init_frozen_strings(void) { assert(!frozen_strings); - frozen_strings = st_init_table(&fstring_hash_type); + frozen_strings = st_init_table_with_size(&fstring_hash_type, 1000); } -- cgit v1.2.3