From: | "Michael Paesold" <mpaesold(at)gmx(dot)at> |
---|---|
To: | "Felipe Schnack" <felipes(at)ritterdosreis(dot)br>, "pgsql-jdbc" <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: synchronized code |
Date: | 2003-01-08 22:06:17 |
Message-ID: | 01ec01c2b762$2b6013b0$3201a8c0@beeblebrox |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Felipe Schnack <felipes(at)ritterdosreis(dot)br> wrote:
> yuck! I think this implementation is kinda gross (can you send me this
> source? Just curious). Just imagine using preparedstatements, you will
> allocate a big internal buffer (to store the "PREPARE", etc command) and
> then just execute much smaller "EXECUTE" calls.
Well, I am really sorry, just re-read the code. I only fills the rest of the
StringBuffer with '\0' bytes, if the new length is _longer_ than the old. My
mistake. So setLength(0) is not expensive.
Btw. there is a src.zip in any j2sdk distribution that contains pretty much
all the java source code.
I would be very much interested in benchmarks with jdk 1.3, too.
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Barry Lind | 2003-01-08 23:19:23 | Re: synchronized code |
Previous Message | Oliver Jowett | 2003-01-08 21:59:50 | Re: synchronized code |