[ruby-cvs:71675] ko1:r64583 (trunk): rest parameter optimization [Feature #15010]

ko1 at ruby-lang.org ko1 at ruby-lang.org
Tue Aug 28 16:06:06 JST 2018


ko1	2018-08-28 16:06:06 +0900 (Tue, 28 Aug 2018)

  New Revision: 64583

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64583

  Log:
    rest parameter optimization [Feature #15010]
    
    * vm_args.c: rb_ary_dup(args->rest) to be used at most once during
      parameter setup. [Feature #15010]
      A patch by chopraanmol1 (Anmol Chopra) <chopraanmol1 at gmail.com>.
    
    * array.c (rb_ary_behead): added to remove first n elements.

  Modified files:
    trunk/array.c
    trunk/internal.h
    trunk/vm_args.c


More information about the ruby-cvs mailing list