[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20161201.152638.37238894730380417.davem@davemloft.net>
Date: Thu, 01 Dec 2016 15:26:38 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: hannes@...essinduktion.org
Cc: david.lebrun@...ouvain.be, netdev@...r.kernel.org
Subject: Re: [RFC PATCH net-next] ipv6: implement consistent hashing for
equal-cost multipath routing
From: Hannes Frederic Sowa <hannes@...essinduktion.org>
Date: Wed, 30 Nov 2016 14:12:48 +0100
> David, one question: do you remember if you measured with linked lists
> at that time or also with arrays. I actually would expect small arrays
> that entirely fit into cachelines to be actually faster than our current
> approach, which also walks a linked list, probably the best algorithm to
> trash cache lines. I ask because I currently prefer this approach more
> than having large allocations in the O(1) case because of easier code
> and easier management.
I did not try this and I do agree with you that for extremely small table
sizes a list or array would perform better because of the cache behavior.
Powered by blists - more mailing lists