[jsword-devel] StringBuffer

Chris Burrell chris at burrell.me.uk
Sun Jan 9 06:51:19 MST 2011


Haven't tried it. I just know that when coding from scratch, I'd used
StringBuilders.

And also, given I'm designing an app that will be used on the web by
different users, I'd like to have it as fast as possible.

Chris


On 9 January 2011 13:35, DM Smith <dmsmith at crosswire.org> wrote:

> Try a more recent copy. :)
>
> In Him,
> DM
>
> Cent from my fone so theer mite be tipos. ;)
>
> On Jan 9, 2011, at 6:14 AM, Chris Burrell <chris at burrell.me.uk> wrote:
>
> > Hi All
> >
> > In my not-so-recent version of JSword I count 133 matches of StringBuffer
> and 0 matches to StringBuilder
> >
> > Str]ingBuilder is much faster, because it is not synchronised /
> thread-safe. So, everytime StringBuffer is declared in a local method, we
> can replace it by a StringBuilder. Since the instance will never be shared.
> If the instance is a instance of the object or a static instance at the top,
> then we can't touch it.
> >
> > Are there other reasons why we are using StringBuffer?
> > Chris
> >
> > _______________________________________________
> > jsword-devel mailing list
> > jsword-devel at crosswire.org
> > http://www.crosswire.org/mailman/listinfo/jsword-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20110109/171bcf6b/attachment.html>


More information about the jsword-devel mailing list