]> granicus.if.org Git - postgresql/commit
Use the new "Slab" context for some allocations in reorderbuffer.h.
authorAndres Freund <andres@anarazel.de>
Mon, 27 Feb 2017 11:41:44 +0000 (03:41 -0800)
committerAndres Freund <andres@anarazel.de>
Mon, 27 Feb 2017 11:41:44 +0000 (03:41 -0800)
commit9fab40ad32efa4038d19eaed975bb4c1713ccbc0
tree74e11745b958b572cf6222eb6cdc8f04a324db52
parent58b25e98106dbe062cec0f3d31d64977bffaa4af
Use the new "Slab" context for some allocations in reorderbuffer.h.

Note that this change alone does not yet fully address the performance
problems triggering this work, a large portion of the slowdown is
triggered by the tuple allocator, which isn't converted to the new
allocator.  It would be possible to do so, but using evenly sized
objects, like both the current implementation in reorderbuffer.c and
slab.c, wastes a fair amount of memory.  A later patch by Tomas will
introduce a better approach.

Author: Tomas Vondra
Reviewed-By: Andres Freund
Discussion: https://postgr.es/m/d15dff83-0b37-28ed-0809-95a5cc7292ad@2ndquadrant.com
src/backend/replication/logical/reorderbuffer.c
src/include/replication/reorderbuffer.h