Re: fixing dllist? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: fixing dllist?
Date
Msg-id 2852.1174575239@sss.pgh.pa.us
Whole thread Raw
In response to Re: fixing dllist?  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Another change that could be done to Dllist is removing the Dllist
> pointer from the Dlelem struct:

I think this is a bad idea.  The patch you propose makes
CatCacheRemoveCTup significantly more expensive (extra hash
calculation).  Moreover, the savings involved is entirely illusory:
palloc chunks are powers of 2, therefore 3 pointers take the same
space as 4.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fixing hash index build time
Next
From: Tom Lane
Date:
Subject: Re: Function cache regeneration