lkml.org 
[lkml]   [2005]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/7] posix-timers: tidy up clock interfaces and consolidate dispatch logic
George Anzinger wrote:
> As I understand it modern machines, the indirect call does really bad
> things to the pipeline.

Unless the call happens often, really often, you'll not be able to
measure differences. Indirect jump obviously cause pipeline stalls
which often, but not always, can be avoided with direct calls. But we
are not talking here about huge delays. And the delays are equivalent
in cost to a mispredicted branch. If you have a couple of ifs in a row
you are likely to incur problems with the branch prediction. I would
just use the indirect jumps but if you want, do some timing and see
whether you can filter the difference out of the noise.

--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 14:09    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site