Re: [pgsql-jdbc] Daily digest v1.2821 (7 messages) - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: [pgsql-jdbc] Daily digest v1.2821 (7 messages)
Date
Msg-id BANLkTinkiusmCB6APQZ8i8W6OEzS7_sSUg@mail.gmail.com
Whole thread Raw
In response to Re: [pgsql-jdbc] Daily digest v1.2821 (7 messages)  (John Lister <john.lister@kickstone.com>)
List pgsql-jdbc
On 5 April 2011 09:26, John Lister <john.lister@kickstone.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

pgsql-jdbc by date:

Previous
From: John Lister
Date:
Subject: Re: [pgsql-jdbc] Daily digest v1.2821 (7 messages)
Next
From: Daron Ryan
Date:
Subject: PreparedStatement for set membership (The IN operator)