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

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: John Lister <john(dot)lister(at)kickstone(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org, bubba(dot)postgres(at)gmail(dot)com, rsmogura(at)softperience(dot)eu
Subject: Re: [pgsql-jdbc] Daily digest v1.2821 (7 messages)
Date: 2011-04-04 22:28:05
Message-ID: BANLkTinkiusmCB6APQZ8i8W6OEzS7_sSUg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Daron Ryan 2011-04-05 07:17:55 PreparedStatement for set membership (The IN operator)
Previous Message John Lister 2011-04-04 21:26:23 Re: [pgsql-jdbc] Daily digest v1.2821 (7 messages)