[ruby-cvs:70634] nobu:r63543 (trunk): string.c: trivial optimizations

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Jun 1 15:53:26 JST 2018


nobu	2018-06-01 15:53:26 +0900 (Fri, 01 Jun 2018)

  New Revision: 63543

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

  Log:
    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.

  Modified files:
    trunk/string.c


More information about the ruby-cvs mailing list