pgsql: Pull up isReset flag from AllocSetContext to MemoryContext struc
В списке pgsql-committers по дате отправления:
| От | Heikki Linnakangas |
|---|---|
| Тема | pgsql: Pull up isReset flag from AllocSetContext to MemoryContext struc |
| Дата | |
| Msg-id | E1QNrK8-0006jH-E7@gemulon.postgresql.org обсуждение исходный текст |
| Ответы |
Re: pgsql: Pull up isReset flag from AllocSetContext to MemoryContext struc
|
| Список | pgsql-committers |
Pull up isReset flag from AllocSetContext to MemoryContext struct. This avoids the overhead of one function call when calling MemoryContextReset(), and it seems like the isReset optimization would be applicable to any new memory context we might invent in the future anyway. This buys back the overhead I just added in previous patch to always call MemoryContextReset() in ExecScan, even when there's no quals or projections. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/30e98a7e6e4869a7d6b3748ac9770bb8d69a8b26 Modified Files -------------- src/backend/utils/mmgr/aset.c | 25 ++----------------------- src/backend/utils/mmgr/mcxt.c | 18 ++++++++++++++++-- src/include/nodes/memnodes.h | 1 + 3 files changed, 19 insertions(+), 25 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера