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.
--
You are receiving this mail because:
You are the assignee for the bug.