Re: Re: RE: [ADMIN] High memory usage [PATCH] - Mailing list pgsql-jdbc

From Michael Stephenson
Subject Re: Re: RE: [ADMIN] High memory usage [PATCH]
Date
Msg-id Pine.LNX.4.30.0106261727550.23283-100000@tirin.openworld.co.uk
Whole thread Raw
In response to Re: Re: RE: [ADMIN] High memory usage [PATCH]  (Gunnar Rønning <gunnar@polygnosis.com>)
List pgsql-jdbc
> I agree that the tests are pretty inconclusive. We need something that
> simulates real usage better. What platform are you testing on Linux ?
> If so with native threads or green threads ?

Linux, I'm using native threads with the hot spot I'm using native
threads, which as I said was performing pretty much identically in both
cases. The non hot spot machine was using green threads which is where the
difference in performance was measurable.

> | I personally would advocate applying a patch similar to below to the
> | current cvs source.
>
> This I don't understand, was your intention to remove thread safety with this
> patch ? Looking at the way you introduce SimpleDateFormat as an instance
> variable it seems so.

Yeah, the patch is rubbish, I did it that way to remove the
(comparitively expensive) ThreadLocal.get inside the setDate and
SetTimeStamp, which is clearly stupid.

Michael xxx


pgsql-jdbc by date:

Previous
From: "Dave Cramer"
Date:
Subject: RE: RE: [ADMIN] High memory usage [PATCH]
Next
From: Barry Lind
Date:
Subject: Re: [ADMIN] High memory usage [PATCH]