pgsql: Improve performance in freeing memory contexts
В списке pgsql-committers по дате отправления:
| От | Kevin Grittner |
|---|---|
| Тема | pgsql: Improve performance in freeing memory contexts |
| Дата | |
| Msg-id | E1a6Ro1-0003VL-Eh@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Improve performance in freeing memory contexts The single linked list of memory contexts could result in O(N^2) performance to free a set of contexts if they were not freed in reverse order of creation. In many cases the reverse order was used, but there were some significant exceptions that caused real- world performance problems. Rather than requiring all callers to care about the order in which contexts were freed, and hunting down and changing all existing cases where the wrong order was used, we add one pointer per memory context so that the implementation details are not so visible. Jan Wieck Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/25c539233044c235e97fd7c9dc600fb5f08fe065 Modified Files -------------- src/backend/utils/mmgr/mcxt.c | 26 ++++++++++++++------------ src/include/nodes/memnodes.h | 1 + 2 files changed, 15 insertions(+), 12 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера