1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 09:32:12 +00:00
Menglong Dong aa653654ee 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>
2025-10-20 12:10:28 +08:00
..
2025-09-24 17:09:47 +02:00
2025-10-01 17:32:51 -07:00
2025-10-02 15:17:01 -07:00
2025-10-03 17:23:18 +02:00
2025-10-06 10:41:03 -07:00
2025-10-08 09:44:38 -07:00
2025-10-02 18:44:54 -07:00
2025-10-02 15:17:01 -07:00
2025-10-06 13:22:21 -07:00
2025-10-04 16:07:08 -07:00
2025-10-10 10:37:13 -07:00
2025-09-24 02:48:05 -07:00
2025-09-29 11:20:29 -07:00
2025-09-30 17:58:11 -07:00
2025-09-29 17:48:27 -07:00
2025-09-23 11:13:22 +02:00
2025-10-03 16:32:36 -07:00
2025-10-03 10:51:44 -07:00
2025-10-06 13:22:21 -07:00
2025-10-04 15:38:04 -07:00
2025-09-13 17:32:44 -07:00
2025-10-02 09:56:23 -07:00
2025-09-29 11:20:29 -07:00
2025-09-18 10:17:09 +02:00
2025-09-23 11:13:22 +02:00
2025-10-07 08:40:15 -07:00
2025-10-04 11:28:45 -07:00
2025-09-29 11:20:29 -07:00
2025-09-17 15:58:29 -04:00
2025-09-30 16:00:29 -07:00
2025-10-03 16:32:36 -07:00
2025-09-23 13:28:20 -04:00
2025-10-06 13:22:21 -07:00
2025-09-19 14:26:16 +02:00
2025-09-29 11:20:29 -07:00
2025-09-25 09:23:47 +02:00
2025-10-01 07:55:42 -05:00
2025-10-03 14:20:40 -07:00
2025-10-03 12:13:12 -05:00
2025-09-13 16:55:07 -07:00
2025-10-03 10:24:14 -07:00
2025-09-29 11:20:29 -07:00
2025-10-01 15:11:00 -07:00
2025-10-07 08:40:15 -07:00
2025-09-30 15:06:33 -07:00
2025-09-30 10:35:11 -07:00
2025-09-19 17:19:45 -07:00
2025-10-01 11:34:12 -07:00
2025-09-29 11:20:29 -07:00
2025-09-29 11:20:29 -07:00
2025-10-01 07:24:55 -04:00