This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: inlining and string concatenation
Tom Tromey wrote:
> Thanks. I assume some of the common benchmarks must look at this?
> I'm also curious to know how much this will help us in real code.
> Implementing it is a fair amount of effort...
It might help a lot for things like poorly-written servlets, with tons
of html/xml code generated like println("<TITLE>+title+...);
On the other hand, most experienced programmers have learned to
optimize this kind of code by instanciating StringBuffers directly:
sb = new StringBuffer(50); sb.append(....)
But all in all, I think string concatenation is common enough in typical
code that a 50% increase of performances for this operation will be
noticed.
Cedric
begin:vcard
n:Berger;Cedric
tel;fax:++1 (650) 574-4476
tel;work:++1 (650) 574-4472
x-mozilla-html:TRUE
org:Wireless Networks Inc
version:2.1
email;internet:cedric@wireless-networks.com
title:Embedded Software Engineer
adr;quoted-printable:;;2322 El Camino Real=0D=0A;San Mateo;CA;94403;USA
fn:Cedric Berger
end:vcard