Project

General

Profile

« Previous | Next » 

Revision 2de1dbdf

Added by nobu (Nobuyoshi Nakada) about 7 years ago

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
    in [ruby-dev:49956]. [Bug #13136]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e