From: Oliver Jowett <oliver@opencloud.com>
To: Thomas Hallgren <thhal@mailblocks.com>
Cc: pgsql-jdbc@postgresql.org
Cc: pgsql@mohawksoft.com
Subject: Re: [HACKERS] Binary Cursors, and the COPY command
Date: Tue, 27 Jul 2004 23:43:58 +1200
Message-ID: <41063FFE.8030400@opencloud.com> (raw)
In-Reply-To: <thhal-0Q9bhAYV/UNsnPJAzxj6lUGXE5P7Ium@mailblocks.com>
References: <10519.64.119.142.34.1090863707.squirrel@mail.mohawksoft.com>
<410574F9.9020103@opencloud.com>
<ce4t7l$pas$2@sea.gmane.org>
<4105FF43.40508@opencloud.com>
<ce587j$ga1$1@sea.gmane.org>
<410628B9.2080800@opencloud.com>
<41063C77.6050305@mailblocks.com>
<thhal-0Q9bhAYV/UNsnPJAzxj6lUGXE5P7Ium@mailblocks.com>
Thomas Hallgren wrote:
> Well, the java.nio obviously :-)
>
> java.nio provides a java.nio.CharBuffer. A java.lang.StringBuffer is
> synchronized. The CharBuffer is not. Since the JDBC driver uses strings
> in a lot of places some code could be rewritten to increase performance.
I haven't seen the string manipulation to be much of a problem with the
current driver in the profiling I've done (it'll be quite application
specific though). And I'd have thought the stringbuffer monitors would
be essentially uncontended and cheap to enter. What are the hotspots you
see?
> And I think that Mark (pgsql@mohawksoft.com) has a point. 90% of all
> installations would get a performance boost if native byte order was
> used.
Well, not mine :) (x86 clients, sparc server, and the driver doesn't yet
use binary format in places where byte order matters anyway)
Also I am fairly suspicious about claims that native byte order will
make things go measurably faster. Do you have any profiling or
benchmarks to back that up? The low-level manipulation of protocol data
barely shows up on the profiles I've done.
-O
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, thhal@mailblocks.com, pgsql@mohawksoft.com
Subject: Re: [HACKERS] Binary Cursors, and the COPY command
In-Reply-To: <41063FFE.8030400@opencloud.com>
References: <10519.64.119.142.34.1090863707.squirrel@mail.mohawksoft.com> <410574F9.9020103@opencloud.com> <ce4t7l$pas$2@sea.gmane.org> <4105FF43.40508@opencloud.com> <ce587j$ga1$1@sea.gmane.org> <410628B9.2080800@opencloud.com> <41063C77.6050305@mailblocks.com> <thhal-0Q9bhAYV/UNsnPJAzxj6lUGXE5P7Ium@mailblocks.com> <41063FFE.8030400@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox