Re: PATCH: two slab-like memory allocators
От
Petr Jelinek
Тема
Re: PATCH: two slab-like memory allocators
Дата
Msg-id
a4b35a6e-7b8a-1550-1543-e5e77183ab5f@2ndquadrant.com
Ответ на
Re: PATCH: two slab-like memory allocators (Andres Freund)
Список
Дерево обсуждения
PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Petr Jelinek <petr@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Petr Jelinek <petr@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators John Gorman <johngorman2@gmail.com>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Michael Paquier <michael.paquier@gmail.com>
Re: PATCH: two slab-like memory allocators John Gorman <johngorman2@gmail.com>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Petr Jelinek <petr@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Robert Haas <robertmhaas@gmail.com>
Re: PATCH: two slab-like memory allocators Petr Jelinek <petr@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Robert Haas <robertmhaas@gmail.com>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Petr Jelinek <petr@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Petr Jelinek <petr@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: PATCH: two slab-like memory allocators Petr Jelinek <petr@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] PATCH: two slab-like memory allocators David Rowley <david.rowley@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Andres Freund <andres@anarazel.de>
Re: [HACKERS] PATCH: two slab-like memory allocators Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] PATCH: two slab-like memory allocators Michael Paquier <michael.paquier@gmail.com>
Re: PATCH: two slab-like memory allocators Haribabu Kommi <kommi.haribabu@gmail.com>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators John Gorman <johngorman2@gmail.com>
Re: PATCH: two slab-like memory allocators Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: PATCH: two slab-like memory allocators Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: PATCH: two slab-like memory allocators Jim Nasby <Jim.Nasby@BlueTreble.com>
[HACKERS] PATCH : Generational memory allocator (was PATCH: two slab-likememory allocators) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH : Generational memory allocator (was PATCH: twoslab-like memory allocators) Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] PATCH : Generational memory allocator (was PATCH: twoslab-like memory allocators) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH : Generational memory allocator (was PATCH: twoslab-like memory allocators) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] PATCH : Generational memory allocator (was PATCH: twoslab-like memory allocators) Simon Riggs <simon@2ndquadrant.com>
On 27/11/16 21:47, Andres Freund wrote: > Hi, > >>> +typedef struct SlabBlockData *SlabBlock; /* forward reference */ >>> +typedef struct SlabChunkData *SlabChunk; >>> >>> Can we please not continue hiding pointers behind typedefs? It's a bad >>> pattern, and that it's fairly widely used isn't a good excuse to >>> introduce further usages of it. >>> >> >> Why is it a bad pattern? > > It hides what is passed by reference, and what by value, and it makes it > a guessing game whether you need -> or . since you don't know whether > it's a pointer or the actual object. All to save a * in parameter and > variable declaration?... > FWIW I don't like that pattern either although it's used in many parts of our code-base. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-hackers по дате отправления
От: David Fetter
Дата: