forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hmap: New functions, macros for iterating buckets without comparing h…
…ashes. Usually, the hash comparison that HMAP_FOR_EACH_WITH_HASH does is an optimization, because comparing a hash value is usually cheaper than comparing an entire hash map key. But for simple hash map keys, it makes sense to just compare the key directly, because it avoids doing two comparisons when a single simple comparison suffices. This commit adds new functions and macros to support this simple case.
- Loading branch information
Showing
1 changed file
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters