java/1141: don't use StringBuffer for string concatenation
Tom Tromey
tromey@cygnus.com
Wed Dec 20 12:08:00 GMT 2000
>Number: 1141
>Category: java
>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: Wed Dec 20 12:06:33 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:
Formerly PR gcj/132
>Unformatted:
More information about the Gcc-prs
mailing list