Re: Small improvements to pg_list.h's linitial(), lsecond(), lthird() etc macros

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Small improvements to pg_list.h's linitial(), lsecond(), lthird() etc macros
Date: 2020-09-28 02:35:06
Message-ID: 232949.1601260506@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Poking around to count remaining uses of those inline functions,
I found a few places that should be using the macros instead,
and fixed them. After that, I notice that list_tail(),
list_third_cell(), and list_fourth_cell() are entirely unreferenced.
I'm hesitant to get rid of list_tail(), because it seems like it
could well be used by extensions. But I'd bet quite a bit that
list_third_cell() and list_fourth_cell() are not used anywhere
anymore. Should we get rid of them to shave a few microseconds
from compile times?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2020-09-28 02:41:23 Re: New statistics for tuning WAL buffer size
Previous Message Fujii Masao 2020-09-28 02:31:42 Re: Feature improvement of tab completion for DEALLOCATE