[ruby-cvs:56264] hsbt:r49114 (trunk): * array.c: Improve performance of Array#shift. use shared instead of

hsbt at ruby-lang.org hsbt at ruby-lang.org
Sat Jan 3 11:27:53 JST 2015


hsbt	2015-01-03 11:27:50 +0900 (Sat, 03 Jan 2015)

  New Revision: 49114

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

  Log:
    * array.c: Improve performance of Array#shift. use shared instead of
      MEMMOVE if with arguments. Patch by @ksss [fix GH-537]
    * test/ruby/test_array.rb: ditto.
    * benchmark/bm_array_shift.rb: Added benchmark of GH-537 issue.

  Added files:
    trunk/benchmark/bm_array_shift.rb
  Modified files:
    trunk/ChangeLog
    trunk/array.c
    trunk/test/ruby/test_array.rb


More information about the ruby-cvs mailing list