Re: AllocSetReset improvement

Поиск
Список
Период
Сортировка
От Karel Zak
Тема Re: AllocSetReset improvement
Дата
Msg-id 1116227017.29081.4.camel@petra
обсуждение исходный текст
Ответ на Re: AllocSetReset improvement  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
On Thu, 2005-05-12 at 11:26 -0400, Tom Lane wrote:

> I have another idea though: in the case you are looking at, I think
> that the context in question never gets any allocations at all, which
> means its blocks list stays null.  We could move the MemSet inside the
> "if (blocks)" test --- if there are no blocks allocated to the context,
> it surely hasn't got any chunks either, so the MemSet is unnecessary.

 Good point. There's same MemSet in AllocSetDelete() too.

    Karel

--
Karel Zak <zakkr@zf.jcu.cz>


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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Minor comments typo fix in src/port
Следующее
От: Mahmoud Taghizadeh
Дата:
Сообщение: farsi faq has not been added yet in website,