Skip to contentSkip to conversation

rte_hash performs poorly with small key sizes

DPDK/other Bug 1775 [email protected] 1 participant 1 message Aug 20, 2025

lore
Share & tools
lore
#0 lore raw

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: [email protected]
          Reporter: [email protected]

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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.