You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Rand McNeely <ra...@yahoo.com> on 2002/07/01 08:31:06 UTC

[lang] [patch] Optimizations for Strings methods

> Some methods could be optimised:
> - capitalise
> - uncapitalise
> - overlayString

I worked on these optimizations basically replacing the string concats
with StringBuffers ensuring the correct capacity in the constructor.  I
have attached the patch.

Btw, as I am very new to open source, if I am making some faux pas here
please let me know so I can stop embarrassing myself :)

Rand

Re: [lang] [patch] Optimizations for Strings methods

Posted by Stephen Colebourne <sc...@btopenworld.com>.
Patch applied. Thanks

Stephen

----- Original Message -----
From: "Rand McNeely" <ra...@yahoo.com>
To: "'Jakarta Commons Developers List'" <co...@jakarta.apache.org>
Sent: Monday, July 01, 2002 7:31 AM
Subject: [lang] [patch] Optimizations for Strings methods


> > Some methods could be optimised:
> > - capitalise
> > - uncapitalise
> > - overlayString
>
> I worked on these optimizations basically replacing the string concats
> with StringBuffers ensuring the correct capacity in the constructor.  I
> have attached the patch.
>
> Btw, as I am very new to open source, if I am making some faux pas here
> please let me know so I can stop embarrassing myself :)
>
> Rand
>


----------------------------------------------------------------------------
----


> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [lang] [patch] Optimizations for Strings methods

Posted by Henri Yandell <ba...@generationjava.com>.
Nope, looks fine to me. I'll add applying the patch to the list of todo's.
I won't be finding much time to do things until Wed night, so don't panic
if it hasn't gone in by then. Tight deadlines for two jobs coinciding :(

Hen

On Mon, 1 Jul 2002, Rand McNeely wrote:

> > Some methods could be optimised:
> > - capitalise
> > - uncapitalise
> > - overlayString
>
> I worked on these optimizations basically replacing the string concats
> with StringBuffers ensuring the correct capacity in the constructor.  I
> have attached the patch.
>
> Btw, as I am very new to open source, if I am making some faux pas here
> please let me know so I can stop embarrassing myself :)
>
> Rand
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>