DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] cuckoo hash in dpdk
@ 2017-08-23 14:15 Pragash Vijayaragavan
  2017-08-23 18:28 ` Dumitrescu, Cristian
  2017-08-24 14:53 ` Andriy Berestovskyy
  0 siblings, 2 replies; 7+ messages in thread
From: Pragash Vijayaragavan @ 2017-08-23 14:15 UTC (permalink / raw)
  To: dev; +Cc: Minseok Kwon

Hi,

I got the chance to look at the cuckoo hash used in dpdk and have a query.

would using division and modulo operations be slower than bitwise
operations on RTE_HASH_BUCKET_ENTRIES, specially since
RTE_HASH_BUCKET_ENTRIES is a power of 2.
For example, to do a modulo we can do a "AND" operation on
(RTE_HASH_BUCKET_ENTRIES - 1), which might be faster. We did a cuckoo
filter for VPP and doing this gave a slight improvement in speed.
Is there any particular reason its done this way.

Sorry if i am being wrong in any way, i was just curious.

Thanks,

Pragash Vijayaragavan
Grad Student at Rochester Institute of Technology
email : pxv3620@rit.edu
ph : 585 764 4662

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-08-25  9:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-23 14:15 [dpdk-dev] cuckoo hash in dpdk Pragash Vijayaragavan
2017-08-23 18:28 ` Dumitrescu, Cristian
2017-08-23 20:20   ` Pragash Vijayaragavan
2017-08-23 20:39     ` Pragash Vijayaragavan
2017-08-24 14:53 ` Andriy Berestovskyy
2017-08-24 18:54   ` Pragash Vijayaragavan
2017-08-25  9:00     ` Andriy Berestovskyy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).