pgsql: Tweak accumArrayResult() to double the size of its working arrays

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Tweak accumArrayResult() to double the size of its working arrays
Date: 2006-11-08 19:24:38
Message-ID: 20061108192438.99FF99FB26B@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Tweak accumArrayResult() to double the size of its working arrays when
more space is needed, instead of incrementing by a fixed amount; the old
method wastes lots of space and time when the ultimate size is large.
Per gripe from Tatsuo.

Modified Files:
--------------
pgsql/src/include/utils:
array.h (r1.59 -> r1.60)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/array.h.diff?r1=1.59&r2=1.60)
pgsql/src/backend/utils/adt:
arrayfuncs.c (r1.134 -> r1.135)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/arrayfuncs.c.diff?r1=1.134&r2=1.135)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-11-08 19:27:24 pgsql: Modify aset.c to track the next intended block allocation size
Previous Message Tom Lane 2006-11-08 19:22:25 pgsql: Fix performance issues in replace_text(), replace_text_regexp(),