diff options
author | Lourens Naudé <lourens@bearmetal.eu> | 2019-10-21 23:28:41 +0100 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-10-29 11:31:15 +0900 |
commit | 4480d68931f3c7b25e194b30dea304b294744c92 (patch) | |
tree | 10c958d1aadaf30fd2744ea4fb47b5602d164cc7 /iseq.c | |
parent | 65744fb19efa7786c6b528d81328b641ea2e7cd5 (diff) |
Right size the compile option hash
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2590
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -720,7 +720,7 @@ make_compile_option(rb_compile_option_t *option, VALUE opt) static VALUE make_compile_option_value(rb_compile_option_t *option) { - VALUE opt = rb_hash_new(); + VALUE opt = rb_hash_new_with_size(11); #define SET_COMPILE_OPTION(o, h, mem) \ rb_hash_aset((h), ID2SYM(rb_intern(#mem)), (o)->mem ? Qtrue : Qfalse) #define SET_COMPILE_OPTION_NUM(o, h, mem) \ |