[ruby-cvs:59121] nobu:r51970 (trunk): compile.c: fix performance of strconcat

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Sep 29 16:38:06 JST 2015


nobu	2015-09-29 16:37:40 +0900 (Tue, 29 Sep 2015)

  New Revision: 51970

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

  Log:
    compile.c: fix performance of strconcat
    
    * compile.c (compile_dstr_fragments): fix performance by omitting
      the first empty string only for keeping literal encoding if
      other literals are too.  [ruby-core:70930] [Bug #11556]
    * string.c (rb_str_append_literal): append but keep encoding non
      US-ASCII.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/insns.def
    trunk/string.c
    trunk/vm.c


More information about the ruby-cvs mailing list