[ruby-cvs:65588] shyouhei:r58416 (trunk): refactor torexp to use routine in array.c

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Thu Apr 20 19:32:08 JST 2017

shyouhei	2017-04-20 19:32:08 +0900 (Thu, 20 Apr 2017)

  New Revision: 58416


    refactor torexp to use routine in array.c
    Found a part where copy&paste can be eliminated.  Reduces vm_exec_core
    from 26,228 bytes to 26,176 bytes in size on my machine. I believe it
    does not affect any runtime performance.
    * array.c (rb_ary_tmp_new_from_values): extend existing
              rb_ary_new_from_values function so that it can take
              additional value for klass.
    * array.c (rb_ary_new_from_values): use the new function.
    * insns.def (toregexp): ditto.

  Modified files:

More information about the ruby-cvs mailing list