[Spambayes] FW: [Spambayes-checkins] spambayes/spambayes classifier.py, 1.5, 1.6

Tim Peters tim_one at email.msn.com
Mon May 26 02:07:26 EDT 2003


I've been using my relatively feeble laptop most of the weekend, and was
curious about why my relatively small 1,000-msg dict database was consuming
so much memory while Outlook was running (I don't have RAM to spare on this
box).  That lead to the following checkin, restoring some original code.  I
*think* old pickles should continue to load without complaint, and know that
mine do.  But if this creates a problem for someone, let me know.

> Update of /cvsroot/spambayes/spambayes/spambayes
> In directory sc8-pr-cvs1:/tmp/cvs-serv13387/spambayes
>
> Modified Files:
> 	classifier.py
> Log Message:
> Somewhere along the way, WordInfo lost its __slots__ decoration.
> Restoring it cuts the memory burden of my dict-based classifier by
> more than a factor of 2.  It should also speed it a bit.  Also
> added/restored comments about the purpose of this class, and removed
> extraneous punctuation from the method implementations.




More information about the Spambayes mailing list