diff options
| author | 2025-10-11 09:48:55 +0800 | |
|---|---|---|
| committer | 2025-10-20 12:10:28 +0800 | |
| commit | aa653654ee67f9cbbebb7d4c18f360ad4fef3180 (patch) | |
| tree | 92478b7541c45f19bdedbb6b14f4aae5eebfe764 /scripts/Makefile.thinlto | |
| parent | crypto: aead - Fix reqsize handling (diff) | |
rhashtable: use likely for rhashtable lookup
Sometimes, the result of the rhashtable_lookup() is expected to be found.
Therefore, we can use likely() for such cases.
Following new functions are introduced, which will use likely or unlikely
during the lookup:
rhashtable_lookup_likely
rhltable_lookup_likely
A micro-benchmark is made for these new functions: lookup a existed entry
repeatedly for 100000000 times, and rhashtable_lookup_likely() gets ~30%
speedup.
Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
