[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

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

  Log:
    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:
    trunk/string.c


More information about the ruby-cvs mailing list