Alexander Kuleshov <kuleshovmail(at)gmail(dot)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