From: till toenges <tt@kyon.de>
To: Luis Vilar Flores <lflores@evolute.pt>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: bytea memory improvement
Date: Wed, 23 Aug 2006 16:31:12 +0200
Message-ID: <44EC66B0.2040108@kyon.de> (raw)
In-Reply-To: <44EB8C82.1000203@evolute.pt>
References: <44EB8C82.1000203@evolute.pt>
Luis Vilar Flores wrote:
> Hope to hear some feedback soon, hope I didn't forget anything ...
I have an idea for a minor improvement. The MAX_3_BUFF_SIZE is set to 0.
Actually, you can immediately return an empty byte array if the size of
the incomming buffer is 0; that could be a static final byte[], because
nobody could do anything with it anyway. In all other cases, the 2
buffer method is simpler and faster, because it uses fewer buffers and
memory accesses, and is therefore the right solution.
Till
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: tt@kyon.de, lflores@evolute.pt
Subject: Re: bytea memory improvement
In-Reply-To: <44EC66B0.2040108@kyon.de>
References: <44EB8C82.1000203@evolute.pt> <44EC66B0.2040108@kyon.de>
* 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