ruby-changes:53832
From: normal <ko1@a...>
Date: Wed, 28 Nov 2018 07:48:12 +0900 (JST)
Subject: [ruby-changes:53832] normal:r66050 (trunk): enumerator.c (enum_chain_yield_block): use predefined ID
normal 2018-11-28 07:48:07 +0900 (Wed, 28 Nov 2018) New Revision: 66050 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66050 Log: enumerator.c (enum_chain_yield_block): use predefined ID No point in having rb_intern lookup and cache a predefined ID Modified files: trunk/enumerator.c Index: enumerator.c =================================================================== --- enumerator.c (revision 66049) +++ enumerator.c (revision 66050) @@ -2575,7 +2575,7 @@ enum_chain_enum_size(VALUE obj, VALUE ar https://github.com/ruby/ruby/blob/trunk/enumerator.c#L2575 static VALUE enum_chain_yield_block(VALUE arg, VALUE block, int argc, VALUE *argv) { - return rb_funcallv(block, rb_intern("call"), argc, argv); + return rb_funcallv(block, id_call, argc, argv); } static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/