lkml.org 
[lkml]   [2004]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/2] use hlist for pid hash
Date
On Saturday 21 August 2004 21:46, you wrote:
> This comes at the "expense" of
> 1. reintroducing the memory prefetch into the hash traversal loop;
> 2. adding new pids to the head of the list instead of the tail. I
> suspect that if this was a big problem then the hash isn't sized
> well or could benefit from moving hot entries to the head.

It looks like the current code is already adding PIDs to the head: list_add()
adds to the head of a list and list_add_tail() adds to the tail.

-Ryan
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.467 / U:0.052 seconds]
©2003-2014 Jasper Spaans. Advertise on this site