| 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@dpdk.org |
| Reporter | mattias.ronnblom@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.