diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-09 17:02:37 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-09 17:02:37 +0000 |
commit | 26a1aef7d9b6559a30a94e369854ceb914c81141 (patch) | |
tree | a1a3270843cca27acc390666298e30fa4cd1647b /src/libserver/task.h | |
parent | d821fa1eb3db12446ce83dd78d4563b0a5c75fd8 (diff) | |
download | rspamd-26a1aef7d9b6559a30a94e369854ceb914c81141.tar.gz rspamd-26a1aef7d9b6559a30a94e369854ceb914c81141.zip |
[Feature] Add per-task lua cache to reuse 'heavy' objects
Diffstat (limited to 'src/libserver/task.h')
-rw-r--r-- | src/libserver/task.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |