I guess I shouldn't have tried to speed up writes (learning), SQLite3 must do a pretty good job of those already. Read (guessing) performance seems like a good win, though.
Also did a little bit of test enhancement so the various extra codepaths introduced by caching all get covered.
I added a benchmark in this branch. Here are the results on my laptop:
exarkun@ top:~/Projects/ Divmod/ branches/ spambayes- fewer-potatoes$ python Quotient/ benchmarks/ spambayes top:~/Projects/ Divmod/ branches/ spambayes- fewer-potatoes$ chbranch Divmod spambayes- fewer-potatoes top:~/Projects/ Divmod/ branches/ spambayes- fewer-potatoes$ python Quotient/ benchmarks/ spambayes
Learning: 0.71 ms/word
Guessing: 0.09 ms/word
exarkun@
exarkun@
Learning: 0.72 ms/word
Guessing: 0.02 ms/word
I guess I shouldn't have tried to speed up writes (learning), SQLite3 must do a pretty good job of those already. Read (guessing) performance seems like a good win, though.
Also did a little bit of test enhancement so the various extra codepaths introduced by caching all get covered.