From 31a57f195f1cda03741a18c3393b7bebddaacf1c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 1 Apr 2021 22:25:24 +0200 Subject: evaluate: use chain hashtable for lookups Instead of the linear list lookup. Before this patch: real 0m21,735s user 0m20,329s sys 0m1,384s After: real 0m10,910s user 0m9,448s sys 0m1,434s chain_lookup() is removed since linear list lookups are only used by the fuzzy chain name matching for error reporting. Signed-off-by: Pablo Neira Ayuso --- include/rule.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/rule.h') diff --git a/include/rule.h b/include/rule.h index 6c6ada6b..ad9cca90 100644 --- a/include/rule.h +++ b/include/rule.h @@ -259,8 +259,6 @@ extern const char *chain_hookname_lookup(const char *name); extern struct chain *chain_alloc(const char *name); extern struct chain *chain_get(struct chain *chain); extern void chain_free(struct chain *chain); -extern struct chain *chain_lookup(const struct table *table, - const struct handle *h); extern struct chain *chain_lookup_fuzzy(const struct handle *h, const struct nft_cache *cache, const struct table **table); -- cgit v1.2.3