Inlining.
authorRobert Haas <rhaas@postgresql.org>
Fri, 13 Jun 2014 17:57:35 +0000 (17:57 +0000)
committerRobert Haas <rhaas@postgresql.org>
Fri, 13 Jun 2014 17:57:35 +0000 (17:57 +0000)
src/backend/utils/mmgr/balloc.c

index 31674f387727b259d51e1c7b4a0179978b6b75f3..7231d11d8e824fae3ca98c1754c7be046ac59009 100644 (file)
@@ -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)
 {