On 5 April 2011 09:26, John Lister <john(dot)lister(at)kickstone(dot)com> wrote:
> One thing you can do is replace StringBuffer with StringBuilder which
> doesn't do synchronisation and is faster, which is something that could be
> done throughout the driver as at the time I couldn't find any shared
> instances - but requires java1.5
Uncontended synchronization is very cheap on modern JVMs. (Not that we
shouldn't use StringBuilder if we can, but I doubt it'll make a
measurable difference)
Oliver