Re: Idea for cleaner representation of snapshots

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Idea for cleaner representation of snapshots
Date: 2007-03-25 17:23:05
Message-ID: 7691.1174843385@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> It sounds like a fine idea from the point of view of flexibility. But as far
> as faster... I guess it depends on how often HeapTupleSatisfiesVisibility is
> used in contexts where the compiler is able to optimize away the conditionals
> or the cpu is able to predict them accurately.

The compiler can't optimize away those conditionals, and even if the
hardware can predict them accurately, one predicted jump has to be
faster than five successive ones. The branch-prediction hardware works
for function pointer calls too (else C++ would be seriously slow).

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-03-25 17:31:22 Re: Effects of GUC settings on automatic replans
Previous Message mark 2007-03-25 15:46:17 Re: Copyrights on files