Re: Idea for cleaner representation of snapshots - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Idea for cleaner representation of snapshots
Date
Msg-id 7691.1174843385@sss.pgh.pa.us
Whole thread Raw
In response to Re: Idea for cleaner representation of snapshots  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: Idea for cleaner representation of snapshots
List pgsql-hackers
Gregory Stark <stark@enterprisedb.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


pgsql-hackers by date:

Previous
From: mark@mark.mielke.cc
Date:
Subject: Re: Copyrights on files
Next
From: Tom Lane
Date:
Subject: Re: Effects of GUC settings on automatic replans