https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6942
Mark Martinec <mark.marti...@ijs.si> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #5149|0 |1 is obsolete| | --- Comment #36 from Mark Martinec <mark.marti...@ijs.si> --- Created attachment 5150 --> https://issues.apache.org/SpamAssassin/attachment.cgi?id=5150&action=edit the BayesStore/Redis.pm implementing the new data repr. using Lua Did bite the bullet, here is an update on the previously attached Bayes.pm which now uses Lua script in a redis server (when available) to implement multi-key spam/ham counts fetch, expiration updates and learn functions. This avoids inefficiencies in a cpan interface module Redis, which has large overhead on multiple small commands. This brings down the timing on tok_get_all() to about the same level as the original code using mget, brings updating expiration on all touched tokens down to about one millisecond (from about three), and speeds up learning somewhat. If Lua is not available in a redis server, it falls back to multiple calls to HMGET, EXPIRE and HINCRBY. -- You are receiving this mail because: You are the assignee for the bug.