From 26a1aef7d9b6559a30a94e369854ceb914c81141 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 9 Feb 2017 17:02:37 +0000 Subject: [Feature] Add per-task lua cache to reuse 'heavy' objects --- src/libserver/task.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libserver/task.h') diff --git a/src/libserver/task.h b/src/libserver/task.h index 1779310bb..c6dff0ebc 100644 --- a/src/libserver/task.h +++ b/src/libserver/task.h @@ -154,6 +154,7 @@ struct rspamd_task { GHashTable *raw_headers; /**< list of raw headers */ GHashTable *results; /**< hash table of metric_result indexed by * metric's name */ + GHashTable *lua_cache; /**< cache of lua objects */ GPtrArray *tokens; /**< statistics tokens */ GPtrArray *rcpt_mime; -- cgit v1.2.3