Re: Variable-length FunctionCallInfoData

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Variable-length FunctionCallInfoData
Дата
Msg-id 20190127071315.n5z6efwd5ybyrol6@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Variable-length FunctionCallInfoData  (Greg Stark <stark@mit.edu>)
Список pgsql-hackers
Hi,

On 2019-01-27 08:03:17 +0100, Greg Stark wrote:
> I assume you already considered and rejected having a fixed size null
> bitmap followed by a variable size array of datums. That seems like it
> would be denser and work better with cpu cache.

It'd be more expensive to access individually (offset calculation +
masks, ~5 insn, not fully pipelineable), it'd not guarantee that the
null bit and datum are on the same cacheline, you could not pass the
null-bit to various functions accepting a bool*, you could not pass the
new equivalent NullableDatums to other functions (like both the past and
current solution allow).

Greetings,

Andres Freund


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Variable-length FunctionCallInfoData
Следующее
От: Noah Misch
Дата:
Сообщение: Re: pgsql: Remove references to Majordomo