commit 202c586: Merge pull request #4718 from rspamd/vstakhov-bayes-rework

GitHub noreply at github.com
Mon Jul 29 17:50:13 UTC 2024


Author: Vsevolod Stakhov
Date: 2023-12-10 18:58:20 +0000
URL: https://github.com/rspamd/rspamd/commit/202c586ce763a3696b6526c0ddfce3dee76ea879

Merge pull request #4718 from rspamd/vstakhov-bayes-rework
Migrate bayes redis backend to Lua scripts

 .luacheckrc                             |    1 +
 lualib/lua_bayes_redis.lua              |  144 +++
 lualib/lua_redis.lua                    |   30 +-
 lualib/redis_scripts/bayes_classify.lua |   38 +
 lualib/redis_scripts/bayes_learn.lua    |   25 +
 lualib/redis_scripts/bayes_stat.lua     |   19 +
 src/libmime/mime_headers.c              |    6 +-
 src/libserver/redis_pool.cxx            |   12 +-
 src/libstat/CMakeLists.txt              |    2 +-
 src/libstat/backends/redis_backend.c    | 2107 -------------------------------
 src/libstat/backends/redis_backend.cxx  |  983 ++++++++++++++
 src/libstat/classifiers/classifiers.h   |   20 +
 src/libutil/cxx/file_util.cxx           |    8 +-
 src/libutil/mem_pool.c                  |   25 +
 src/libutil/mem_pool.h                  |    8 +
 src/libutil/util.c                      |    4 +-
 src/libutil/util.h                      |    2 +-
 17 files changed, 1298 insertions(+), 2136 deletions(-)


More information about the Commits mailing list