Re: Inline MemoryContextSwitchTo?

Поиск
Список
Период
Сортировка
От Karel Zak
Тема Re: Inline MemoryContextSwitchTo?
Дата
Msg-id 1107763989.3518.8.camel@petra
обсуждение исходный текст
Ответ на Inline MemoryContextSwitchTo?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Inline MemoryContextSwitchTo?  ("Simon Riggs" <simon@2ndquadrant.com>)
Список pgsql-hackers
On Sun, 2005-02-06 at 18:05 -0500, Tom Lane wrote:
> Can anyone think of a reason we aren't inlining MemoryContextSwitchTo()
> in GCC builds, similarly to the way list_head() et al are handled?
> 
> It wouldn't be a huge gain, but I consistently see MemoryContextSwitchTo
> eating a percent or three of most profiles.

Sounds good. 

I think we can inlining all MemoryContext functions which check memory
context header and call context->metods->...() only. An example
MemoryContextAlloc() that is very often called from code too.
Karel

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



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

Предыдущее
От: "Premsun Choltanwanich"
Дата:
Сообщение: Re: How can I use large object on PostgreSQL Linux
Следующее
От: "Simon Riggs"
Дата:
Сообщение: Re: Thinking about breaking up the BufMgrLock