On Tue, Oct 18, 2016 at 6:27 PM, Petr Jelinek <p...@2ndquadrant.com> wrote: > I agree though that the usability beyond the ReoderBuffer is limited > because everything that will want to use it for part of allocations will > get much more complicated by the fact that it will have to use two > different allocators. > > I was wondering if rather than trying to implement new allocator we > should maybe implement palloc_fixed which would use some optimized > algorithm for fixed sized objects in our current allocator. The > advantage of that would be that we could for example use that for things > like ListCell easily (memory management of which I see quite often in > profiles).
The sb_alloc allocator I proposed a couple of years ago would work well for this case, I think. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers