diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-01 06:53:26 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-01 06:53:26 +0000 |
| commit | ce2f4f852692a1583cbe15877f0c0f2384d53c0f (patch) | |
| tree | 89660f4a67d04b4194187fff15f1eacc3aa84456 /spec/ruby/shared/string | |
| parent | ccdcc7300d34889fcbbfb836e2261f35a89e3874 (diff) | |
string.c: trivial optimizations
* string.c (rb_str_aset): prefer BUILTIN_TYPE over TYPE after
SPECIAL_CONST_P check.
* string.c (rb_str_start_with): prefer RB_TYPE_P over switch by
TYPE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/shared/string')
0 files changed, 0 insertions, 0 deletions
