[ruby-cvs:64546] nobu:r57380 (trunk): array.c: improve Array#sample

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Jan 20 11:39:27 JST 2017

nobu	2017-01-20 11:39:27 +0900 (Fri, 20 Jan 2017)

  New Revision: 57380


    array.c: improve Array#sample
    * array.c (rb_ary_sample): improve performance when many samples
      from a large array.  based on the patch by tomoya ishida
      <tomoyapenguin AT gmail.com> in [ruby-dev:49956].  [Bug #13136]

  Modified files:

More information about the ruby-cvs mailing list