From: Kris Jurka <books@ejurka.com>
To: Luis Vilar Flores <lflores@evolute.pt>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: bytea memory improvement
Date: Thu, 29 Jun 2006 18:08:27 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0606291801150.26248@leary2.csoft.net> (raw)
In-Reply-To: <6C675D36-3097-4B3A-A4E5-319C2AAD5EAC@evolute.pt>
References: <448EB28B.2020301@evolute.pt>
<6C675D36-3097-4B3A-A4E5-319C2AAD5EAC@evolute.pt>
On Wed, 28 Jun 2006, Luis Vilar Flores wrote:
> Can any JDBC developer give some feedback about this patch ? Memory
> usage is a real issue for a few applications ...
>
It looks like a reasonable thing to do, but could you give us some more
details on the cost/benefits? Your original email said it cost an extra
30ms for 5MB of data on your machine. What's percentage of the original
cost is this? Also you could be more clear on what percentage of memory
this saves. For the worst case scenario your going to get four bytes of
escaped data for every real byte so the total size of the original method
would be 4 + 4 + 1 and for the new method 4 + 1, so a savings of 44%? Is
that what you've calculated?
Finally you haven't actually submitted a patch, you've just sent a
modified copy of a whole file. Since it's a small file that changes
infrequently it's not a big deal, but we prefer context diffs if
you can.
Kris Jurka
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: books@ejurka.com, lflores@evolute.pt
Subject: Re: bytea memory improvement
In-Reply-To: <Pine.BSO.4.63.0606291801150.26248@leary2.csoft.net>
References: <448EB28B.2020301@evolute.pt> <6C675D36-3097-4B3A-A4E5-319C2AAD5EAC@evolute.pt> <Pine.BSO.4.63.0606291801150.26248@leary2.csoft.net>
* 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