bugzilla-daemon at bugzilla
Apr 23, 2012, 12:32 PM
[Bug 6793] New: PATCH reduce sa-awl memory usage
Bug #: 6793
Summary: PATCH reduce sa-awl memory usage
AssignedTo: dev [at] spamassassin
ReportedBy: vitalyb [at] telenet
Created attachment 5050
current version of sa-awl loads full database key list to memory before showing
stats or performing maintenance. I believe it's obvious that this behavior is
undesirable and makes large databases impossible to handle.
The patch below improves sa-awl scaling and responsiveness by scanning database
row-by-row basis instead of loading all keys to memory first.
Tested cleaning db with over 8 million rows.
For a cached db with 850K rows memory usage lowers from 1G to 6M, execution
is around 12% slower (26 vs. 29 sec), though.
I'm not a perl expert, please review.
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.