aboutsummaryrefslogtreecommitdiffstats
path: root/core/module-list.c
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-10-05 10:52:22 +0100
committereunhhu <[email protected]>2026-10-05 10:52:22 +0100
commitfccde3d57f9eafaf9d91edd666fe8128e619a4e5 (patch)
tree662efa274db9aafa05e0269cc5f992da4cbf0fc9 /core/module-list.c
parent68a1987919d18380abd38b0b60f46a5102f0fb2b (diff)
downloadpure-fccde3d57f9eafaf9d91edd666fe8128e619a4e5.tar.gz
pure-fccde3d57f9eafaf9d91edd666fe8128e619a4e5.zip
Read a slice's bucket and first cell some rounds ahead of the loop that opens it, read an item and find it in key bits as one, branch back once a round: BFS core 19.6 to 14.9 ms (022)
Diffstat (limited to 'core/module-list.c')
-rw-r--r--core/module-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/module-list.c b/core/module-list.c
index 7a1e08b..fb6fff6 100644
--- a/core/module-list.c
+++ b/core/module-list.c
@@ -1492,7 +1492,7 @@ const size_t pure_list_layout[] = {
const size_t pure_pack_layout[] = {
[PACK_FIRST_AT] = offsetof(Pack, first), [PACK_WHOLE_AT] = offsetof(Pack, whole), [PACK_SHIFT_AT] = offsetof(Pack, shift),
[PACK_ORIGIN_AT] = offsetof(Pack, origin_whole), [PACK_LOW_AT] = offsetof(Pack, low_whole),
- [PACK_HIGH_AT] = offsetof(Pack, high_whole)};
+ [PACK_HIGH_AT] = offsetof(Pack, high_whole), [PACK_BUCKETS_AT] = offsetof(Pack, buckets)};
bool pure_list_lookup(const PureList *list, unsigned key_field, PureCell key, unsigned field, PureCell *cell) {
bool found;