[ruby-cvs:66674] nobu:r59496 (trunk): string.c: improve String#scan

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Aug 4 13:39:53 JST 2017

nobu	2017-08-04 13:39:53 +0900 (Fri, 04 Aug 2017)

  New Revision: 59496


    string.c: improve String#scan
    * string.c (rb_str_rstrip_bang): improve the performance in 50%
      for a string pattern, and in 10% for a regexp pattern.  get rid
      of making MatchData in middle, which is not used.

  Modified files:

More information about the ruby-cvs mailing list