From: Robert Haas Date: Fri, 13 Jun 2014 17:57:35 +0000 (+0000) Subject: Inlining. X-Git-Url: http://git.postgresql.org/gitweb/static/close/reject?a=commitdiff_plain;h=ec82394df728692d25cc5f01616fdd57d500704c;p=users%2Frhaas%2Fpostgres.git Inlining. --- 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) {