[ruby-cvs:59199] nobu:r52048 (trunk): string.c: optimize rb_str_resurrect

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Oct 6 02:29:40 JST 2015


nobu	2015-10-06 02:29:40 +0900 (Tue, 06 Oct 2015)

  New Revision: 52048

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

  Log:
    string.c: optimize rb_str_resurrect
    
    * string.c (rb_str_resurrect): optimize by short circuit to copy
      hidden string without checking length, encoding and so on.

  Modified files:
    trunk/ChangeLog
    trunk/string.c


More information about the ruby-cvs mailing list