[jsword-devel] StringBuffer

DM Smith dmsmith at crosswire.org
Sun Jan 9 06:35:00 MST 2011


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



More information about the jsword-devel mailing list