Inline MemoryContextSwitchTo?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Inline MemoryContextSwitchTo?
Date: 2005-02-06 23:05:36
Message-ID: 17354.1107731136@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2005-02-07 00:25:22 Re: Patch Count?
Previous Message Euler Taveira de Oliveira 2005-02-06 22:44:34 Re: Patch Count?