Re: PATCH: two slab-like memory allocators
От | Robert Haas |
---|---|
Тема | Re: PATCH: two slab-like memory allocators |
Дата | |
Msg-id | CA+TgmobJrM74FRTcmn2JDMVbLB0a5pj5e3ieLBMzkDNtrxF4dw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: PATCH: two slab-like memory allocators (Petr Jelinek <petr@2ndquadrant.com>) |
Ответы |
Re: PATCH: two slab-like memory allocators
|
Список | pgsql-hackers |
On Tue, Oct 18, 2016 at 6:27 PM, Petr Jelinek <petr@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
В списке pgsql-hackers по дате отправления: