|
|
Thorsten Froehlich wrote:
> In article <41166817@news.povray.org> , Wolfgang Wieser
> <wwi### [at] nospamgmxde> wrote:
>
>> First of all, quoting the GCC info:
>> ---------------------------------------------------------------------
>> Note that you will still be paying the penalty for the call through a
>> function pointer; on most modern architectures, such a call defeats the
>> branch prediction features of the CPU. This is also true of normal
>> virtual function calls.
>
> That is completely outdated information and wrong on anything available in
> the past decade. It infers a completely static branch prediction.
>
Well, actually my measurements in the last posting already showed that
the branch prediction of my AthlonXP seems to have no major problems
with it...
But the rest of the results is far more interesting.
It seems that there actually is no overhead in calling functions inside
a dynamically linked object.
Wolfgang
Post a reply to this message
|
|