DPDK patches and discussions
 help / color / mirror / Atom feed
* [DPDK/other Bug 1775] rte_hash performs poorly with small key sizes
@ 2025-08-20 12:23 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2025-08-20 12:23 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

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@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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #2: Type: text/html, Size: 2768 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-20 12:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-20 12:23 [DPDK/other Bug 1775] rte_hash performs poorly with small key sizes bugzilla

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).