summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-01-23 19:05:41 +0100
committerMaria Matejka <mq@ucw.cz>2023-01-23 19:05:41 +0100
commit5481bcd82f4c9dc2074267fb56858f5bf48910df (patch)
tree2166b77f8b15159ab2b0461ff7f2a0608bf9de66 /filter
parent7bb93efc27c1c6f7d1f3cb66791005903f7b1a26 (diff)
parentd3f50ede127df338f575e188566035b2a46cf6c6 (diff)
Merge commit 'd3f50ede127df338f575e188566035b2a46cf6c6' into thread-next
Diffstat (limited to 'filter')
-rw-r--r--filter/data.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/filter/data.h b/filter/data.h
index ad578208..6aa34d44 100644
--- a/filter/data.h
+++ b/filter/data.h
@@ -68,8 +68,15 @@ struct f_tree {
void *data;
};
+#ifdef ENABLE_COMPACT_TRIES
+/* Compact 4-way tries */
+#define TRIE_STEP 2
+#define TRIE_STACK_LENGTH 65
+#else
+/* Faster 16-way tries */
#define TRIE_STEP 4
#define TRIE_STACK_LENGTH 33
+#endif
struct f_trie_node4
{