Oliver Jowett wrote:
> Ken Geis wrote:
>> First, in PGStream, I "unrolled" SendInteger4 and SendInteger2, like
>> private static final byte B4 = new byte;
>> public void SendInteger4(int val) throws IOException
>> B4 = (byte) ((val >> 24)&255);
>> B4 = (byte) ((val >> 16)&255);
>> B4 = (byte) ((val >> 8)&255);
>> B4 = (byte) (val&255);
>> pg_output.write(B4, 0, 4);
> This isn't safe across multiple PGStreams. Can you try benchmarking
> again with "private final" instead of "private static final"? If that's
> still a win it is probably worth changing.
I missed that glaringly obvious point!
My computer is tied up right now in a computational task. I'll get back
to you tomorrow.
In response to
pgsql-jdbc by date
|Next:||From: Ken Geis||Date: 2005-02-23 08:20:14|
|Subject: Re: Performance tweaks|
|Previous:||From: Oliver Jowett||Date: 2005-02-22 23:43:33|
|Subject: Re: PostGreSQL and Crystal Reports Bug?|