On Sat, Jun 08, 2002 at 01:00:59AM +0200, Martin Josefsson wrote:
> Hi,
> 
> Attached is a small optimization for __ip_conntrack_find().
> The way I read the use of the LIST_FIND macro it seems that we are
> calling hash_conntrack() for each iteration with the same inparameters.

Thanks.  My assumption was that this is actually done by the optimization
code of gcc.  But from looking at the disassembled compiler output, there
is actually quite a difference between the old and the new code.

> My change calls it once before looping.

i'll put this into pending.

> /Martin


-- 
Live long and prosper
- Harald Welte / [EMAIL PROTECTED]               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ 
V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)

Attachment: msg01282/pgp00000.pgp
Description: PGP signature

Reply via email to