From a9df34cd05d9f88466c52364780f0e40c13a3e45 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 29 Sep 2015 07:37:40 +0000 Subject: 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vm.c') diff --git a/vm.c b/vm.c index 92b33f3ffe..ee9f4076c1 100644 --- a/vm.c +++ b/vm.c @@ -21,6 +21,8 @@ #include "probes.h" #include "probes_helper.h" +VALUE rb_str_append_literal(VALUE str, VALUE str2); + static inline VALUE * VM_EP_LEP(VALUE *ep) { -- cgit v1.2.3