projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85b21be
)
Inlining.
author
Robert Haas
<rhaas@postgresql.org>
Fri, 13 Jun 2014 17:57:35 +0000
(17:57 +0000)
committer
Robert Haas
<rhaas@postgresql.org>
Fri, 13 Jun 2014 17:57:35 +0000
(17:57 +0000)
src/backend/utils/mmgr/balloc.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/mmgr/balloc.c
b/src/backend/utils/mmgr/balloc.c
index 31674f387727b259d51e1c7b4a0179978b6b75f3..7231d11d8e824fae3ca98c1754c7be046ac59009 100644
(file)
--- 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)
{