[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] Patch: 2 API methods implemented in java.lang.String
From: |
Anthony Balkissoon |
Subject: |
Re: [cp-patches] Patch: 2 API methods implemented in java.lang.String |
Date: |
Tue, 08 Nov 2005 11:06:12 -0500 |
On Mon, 2005-11-07 at 13:52 -0800, David Daney wrote:
> Try StringBuilder instead of StringBuffer.
>
Done. This is faster than StringBuffer but doesn't provide
thread-safety, which we didn't need in this case anyway.
2005-11-08 Anthony Balkissoon <address@hidden>
* java/lang/String.java:
(replace): Use a StringBuilder instead of a StringBuffer because this
is faster and we don't need thread-safety.
--Tony
StringReplaceStringBuilder.diff
Description: Text Data