summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-04 04:39:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-04 04:39:53 +0000
commit2b770b467455d7d7d6fa0c03ef177820a56b11f5 (patch)
treeb3ef74f67572122fc7ceafa8436bb69c30b9b9a3 /lib
parent8ba320a410ec08581dbc1f618ac21ebfd1714d7c (diff)
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions