Re: [PATCH] Use MemoryContextAlloc() in the MemoryContextAllocZero() and MemoryContextAllocZeroAligned()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Use MemoryContextAlloc() in the MemoryContextAllocZero() and MemoryContextAllocZeroAligned()
Дата
Msg-id 13968.1457799052@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [PATCH] Use MemoryContextAlloc() in the MemoryContextAllocZero() and MemoryContextAllocZeroAligned()  (Alexander Kuleshov <kuleshovmail@gmail.com>)
Список pgsql-hackers
Alexander Kuleshov <kuleshovmail@gmail.com> writes:
> Attached patch simplifies the MemoryContextAllocZero() and
> MemoryContextAllocZeroAligned().

What this does is to de-inline those functions, resulting in an
extra level of function call per allocation.  We had intentionally
inlined them on performance grounds: those things are hot spots in
most workloads.  Do you have any evidence demonstrating that this
doesn't cause a performance hit?
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: eXtensible Transaction Manager API (v2)
Следующее
От: Salvador Fandiño
Дата:
Сообщение: Re: Perl's newSViv() versus 64-bit ints?