From 0e68913f81eb35ae615592986a23b0f8f22501c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lourens=20Naud=C3=A9?= Date: Mon, 21 Oct 2019 23:31:46 +0100 Subject: Right size the Enumerator internal lazy_use_super_method hash --- enumerator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'enumerator.c') diff --git a/enumerator.c b/enumerator.c index 06e2a9e6a7..5f21455ddd 100644 --- a/enumerator.c +++ b/enumerator.c @@ -4016,7 +4016,7 @@ InitVM_Enumerator(void) rb_define_method(rb_cLazy, "uniq", lazy_uniq, 0); rb_define_method(rb_cLazy, "with_index", lazy_with_index, -1); - lazy_use_super_method = rb_hash_new(); + lazy_use_super_method = rb_hash_new_with_size(18); rb_hash_aset(lazy_use_super_method, ID2SYM(rb_intern("map")), ID2SYM(rb_intern("_enumerable_map"))); rb_hash_aset(lazy_use_super_method, ID2SYM(rb_intern("collect")), ID2SYM(rb_intern("_enumerable_collect"))); rb_hash_aset(lazy_use_super_method, ID2SYM(rb_intern("flat_map")), ID2SYM(rb_intern("_enumerable_flat_map"))); -- cgit v1.2.1