Re: Rethinking MemoryContext creation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Rethinking MemoryContext creation
Дата
Msg-id 16100.1513013901@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Rethinking MemoryContext creation  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: Rethinking MemoryContext creation  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> writes:
> On 11 December 2017 at 16:27, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> For a *very* large majority of the callers of AllocSetContextCreate,
>> the context name is a simple C string constant, so we could just store
>> the pointer to it and save the space and cycles required to copy it.

> Why have the string at all in that case?

Try reading a MemoryContextStats dump without it ...

            regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: Rethinking MemoryContext creation
Следующее
От: ilmari@ilmari.org (Dagfinn Ilmari Mannsåker)
Дата:
Сообщение: Re: Rethinking MemoryContext creation