Re: [PATCH] Use MemoryContextAlloc() in the MemoryContextAllocZero() and MemoryContextAllocZeroAligned() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCH] Use MemoryContextAlloc() in the MemoryContextAllocZero() and MemoryContextAllocZeroAligned()
Date
Msg-id 13968.1457799052@sss.pgh.pa.us
Whole thread Raw
In response to [PATCH] Use MemoryContextAlloc() in the MemoryContextAllocZero() and MemoryContextAllocZeroAligned()  (Alexander Kuleshov <kuleshovmail@gmail.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: eXtensible Transaction Manager API (v2)
Next
From: Salvador Fandiño
Date:
Subject: Re: Perl's newSViv() versus 64-bit ints?