Re: [PATCH 2/2] use hlist for pid hash

From: Ryan Cumming
Date: Sun Aug 22 2004 - 00:28:28 EST


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

Attachment: pgp00000.pgp
Description: PGP signature