Re: [PATCH] [PKT_SCHED]: Reduce branch mispredictions in pfifo_fast_dequeue

2005-07-18 Thread David S. Miller
From: Thomas Graf <[EMAIL PROTECTED]> Date: Mon, 18 Jul 2005 15:36:36 +0200 > The current call to __qdisc_dequeue_head leads to a branch > misprediction for every loop iteration, the fact that the > most common priority is 2 makes this even worse. This issue > has been brought up by Eric Dumazet

[PATCH] [PKT_SCHED]: Reduce branch mispredictions in pfifo_fast_dequeue

2005-07-18 Thread Thomas Graf
The current call to __qdisc_dequeue_head leads to a branch misprediction for every loop iteration, the fact that the most common priority is 2 makes this even worse. This issue has been brought up by Eric Dumazet <[EMAIL PROTECTED]> but unlike his solution which was to manually unroll the loop, th