aboutsummaryrefslogtreecommitdiffstats
path: root/src/statfile.h
Commit message (Collapse)AuthorAgeFilesLines
* * Add correcting factor to statistics.Vsevolod Stakhov2011-06-281-0/+8
| | | | | | Now learning increments version of a statfile. Avoid learning and classifying of similar text parts if a message has 2 text parts. Several fixes to statistics.
* Fixes types (use glib ones) no functional change.Vsevolod Stakhov2010-10-061-29/+29
| | | | | Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
* * Fix shared usage of statfilesVsevolod Stakhov2010-09-161-0/+11
| | | | | | * Add invalidation of statfiles in case of learning, so now statfiles are invalidated in about a minute after learning * This should fix shared usage of statfile pool by several processes
* * Many fixes to statfile syncronization systemVsevolod Stakhov2010-09-021-1/+1
| | | | * Fixed statfile pool initialization and synchronization with disk
* * Fix symbols cache (init lua filters before symbols cache initialization)Vsevolod Stakhov2009-12-141-1/+0
| | | | | | | * Remove LRU expiration logic from statfiles and replace it with random/lowerest value expiration logic: expire random block or block with lowerest value ! statfiles are incompatible again
* * Many major fixes to statfiles:Vsevolod Stakhov2009-12-031-6/+19
| | | | | | | | | | - fix bug with mmapping files: new addresses must NOT be allocated in shared memory by themselves - fix bug with winnow classifier that totally brokes it down - fix bug with too much grow of values * Use double precission values in statistics * Add statistics for statfiles * Add more informative data to output of LEARN command (weight of incoming message) * Add weight to output of classifier as well
* * Write revision and revision time to statfileVsevolod Stakhov2009-11-121-2/+3
| | | | * Make some improvements to API (trying to make it more clear)
* * New version of rspamd statfiles that can be used in syncVsevolod Stakhov2009-11-121-2/+25
| | | | | * Add convertion routines for converting 1.0 to 1.2 statfiles * Reserve some place in header for future features
* * Add ability to change statfile size limit in config and allow reindexing ↵Vsevolod Stakhov2009-10-161-1/+1
| | | | of statfiles
* * Fix another raceVsevolod Stakhov2009-09-301-0/+1
|
* * Fix race between learn and classifyVsevolod Stakhov2009-09-281-3/+7
|
* * Rework structure and API of statfiles functions to improve performance and ↵Vsevolod Stakhov2009-07-021-12/+12
| | | | | | avoid missusage of hash table * Correct url length calculation in urls command
* * Add deadlock detection for memory pool locks and imporve mutexes APIVsevolod Stakhov2009-05-211-1/+1
|
* * Validate utf8 chars to avoid crashesVsevolod Stakhov2009-04-241-0/+1
|
* * Add ability to configure sections in statfilesVsevolod Stakhov2009-03-131-0/+10
| | | | | * Add ability to define variables in modules blocks * Add symbolic aliases for statfile sections
* * Add sections support to rspamd statfiles APIVsevolod Stakhov2009-03-121-1/+43
| | | | | | * Change logic of statfile pool: - statfiles hash is no longer shared hash as we have per-process uniq things like current section or offset in statfile - introduce shared hash of statfiles mmapped areas to avoid multiply mmaps of the same file
* * Prepare to migrate to cmake (still need to write install target and ↵Vsevolod Stakhov2009-02-161-6/+0
| | | | | | | | working with XS implicitly) * Move all system includes to one file where we detect availability of all that includes * Fix license misprint * Fix some issues with perl initializing
* * Make doxygen happy about structures membersVsevolod Stakhov2009-02-061-25/+26
|
* * Add some comments and documentationVsevolod Stakhov2009-02-051-26/+112
|
* * Add new hash for storing hash data in shared memoryVsevolod Stakhov2009-01-271-2/+3
| | | | * Add rwlocks implementation (primitive) in memory pool library
* * Add simple implementation of classifiers abstraction and winnow classifierVsevolod Stakhov2008-12-041-3/+3
| | | | * Force statfile to work with float values
* * Write functions to operate blocks in stat filesVsevolod Stakhov2008-11-281-1/+9
| | | | * Write test case for statistics files API
* * Add initial implementation of statistics files handling APIVsevolod Stakhov2008-11-271-0/+61