pgsql-server: Reduce the minimum allocable chunk size to 8 bytes (from

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server: Reduce the minimum allocable chunk size to 8 bytes (from
Date: 2004-05-26 19:44:16
Message-ID: 20040526194416.E1C8FD1C938@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Reduce the minimum allocable chunk size to 8 bytes (from 16). Now that
ListCells are only 8 bytes instead of 12 (on 4-byte-pointer machines
anyway), it's worth maintaining a separate freelist for 8-byte objects.
Remembering that alloc chunks carry 8 bytes of overhead, this should
reduce the net storage requirement for a long List by about a third.

Modified Files:
--------------
pgsql-server/src/backend/utils/mmgr:
aset.c (r1.54 -> r1.55)
(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/utils/mmgr/aset.c.diff?r1=1.54&r2=1.55)

Browse pgsql-committers by date

  From Date Subject
Next Message Neil Conway 2004-05-27 01:00:42 pgsql-server: Add an index entry for "Performance Tips".
Previous Message Tom Lane 2004-05-26 19:30:18 pgsql-server: A couple other cosmetic cleanups in new List stuff.