Re: Two question about performance tuning issue. - Mailing list pgsql-hackers

From nconway@klamath.dyndns.org (Neil Conway)
Subject Re: Two question about performance tuning issue.
Date
Msg-id 20020726142027.GA28152@klamath.dyndns.org
Whole thread Raw
In response to Two question about performance tuning issue.  ("Kangmo, Kim" <ilvsusie@hahafos.com>)
List pgsql-hackers
On Fri, Jul 26, 2002 at 03:43:30AM +0900, Kangmo, Kim wrote:
> 2. appendStringInfoChar reallocates every bytes whenever needed,
> why don't reallocate chunk for better performace?

enlargeStringInfo() takes care of that -- from the comment in the
function:
   /*    * We don't want to allocate just a little more space with each    * append; for efficiency, double the buffer
sizeeach time it    * overflows. Actually, we might need to more than double it if    * 'needed' is big...    */
 

Cheers,

Neil

-- 
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC


pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Going on vacation
Next
From: "Roderick A. Anderson"
Date:
Subject: Re: Password sub-process ...