From ec82394df728692d25cc5f01616fdd57d500704c Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Fri, 13 Jun 2014 17:57:35 +0000 Subject: [PATCH] Inlining. --- src/backend/utils/mmgr/balloc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backend/utils/mmgr/balloc.c b/src/backend/utils/mmgr/balloc.c index 31674f3877..7231d11d8e 100644 --- a/src/backend/utils/mmgr/balloc.c +++ b/src/backend/utils/mmgr/balloc.c @@ -881,9 +881,11 @@ BlockAllocatorStats(MemoryContext context, int level) /* * Allocate an object of the requested size class from the given allocator. - * If necessary, steal or create another block. + * + * Inlining this function has been found to improve performance significantly, + * so we do. */ -static char * +static inline char * BlockAllocatorAllocGuts(char *base, AllocatorRegion *region, BlockAllocatorContext *context, int size_class) { -- 2.39.5