Re: fixing dllist?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: fixing dllist?
Date: 2007-03-22 14:53:59
Message-ID: 2852.1174575239@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera <alvherre(at)commandprompt(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-03-22 14:59:15 Re: Function cache regeneration
Previous Message Bruce Momjian 2007-03-22 14:41:46 Re: [HACKERS] Stats processor not restarting