gcj/132: don't use StringBuffer for string concatenation

Tom Tromey tromey@cygnus.com
Mon Jan 10 20:16:00 GMT 2000


>Number:         132
>Category:       gcj
>Synopsis:       don't use StringBuffer for string concatenation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 10 20:16:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Tom Tromey
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
Right now gcj implements string concatenation
using StringBuffer.  When compiling to native
code, this is unnecessarily slow.
Instead we should have a similar class that does
not use synchronization.  Also, we should stack
allocate the actual object (but not necessarily
the buffer) when doing string concatenation.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Java-prs mailing list