From: Tom Lane Date: Wed, 26 May 2004 19:44:15 +0000 (+0000) Subject: Reduce the minimum allocable chunk size to 8 bytes (from 16). Now that X-Git-Tag: REL8_0_0BETA1~514 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4646a8f32fbae1581ff0a2fa259bced82fc583e7;p=postgresql 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. --- diff --git a/src/backend/utils/mmgr/aset.c b/src/backend/utils/mmgr/aset.c index 1a83b2416f..435b459708 100644 --- a/src/backend/utils/mmgr/aset.c +++ b/src/backend/utils/mmgr/aset.c @@ -11,7 +11,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/mmgr/aset.c,v 1.54 2003/11/29 19:52:04 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/utils/mmgr/aset.c,v 1.55 2004/05/26 19:44:15 tgl Exp $ * * NOTE: * This is a new (Feb. 05, 1999) implementation of the allocation set @@ -85,7 +85,7 @@ * CAUTION: ALLOC_MINBITS must be large enough so that * 1<