[DPDK/other Bug 1775] rte_hash performs poorly with small key sizes

bugzilla at dpdk.org bugzilla at dpdk.org
Wed Aug 20 14:23:50 CEST 2025


https://bugs.dpdk.org/show_bug.cgi?id=1775

            Bug ID: 1775
           Summary: rte_hash performs poorly with small key sizes
           Product: DPDK
           Version: 25.07
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: other
          Assignee: dev at dpdk.org
          Reporter: mattias.ronnblom at ericsson.com
  Target Milestone: ---

<rte_hash.h> uses memcmp() to compare key sizes < 16 bytes.

memcmp() is often not a compiler intrinsic (e.g., not on GCC), and thus each
comparison will result in an expensive libc call (both function call overhead
and the byte-scanning required by memcmp).

memcmp() should preferably never be used for a pure boolean comparison.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20250820/3648f417/attachment.htm>


More information about the dev mailing list