aykutuysal / smsspamdetector

Android application for sms spam detection using support vector machines and bayesian filtering
0 stars 0 forks source link

SVM takes too long in receiver #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
predictSingle takes too long to complete, resulting to an ANR of receiver.
Must be taken into the thread pool. Still, incoming SMS gets written to the 
inbox before the SVM check finishes, which causes the abortion thread not to be 
able to fetch the SMS from inbox (variable "before" becomes variable "after" in 
value). So the thread wait endlessly for the incoming SMS to arrive at inbox 
although it has already arrived.

Best way is to increase performance of SVM dramatically. Even so, the incoming 
SMS might get written into inbox before the thread to fetch it starts. This 
will result in failure to move it to spams db. We might need to reconsider the 
algorithm there.

Original issue reported on code.google.com by can...@gmail.com on 15 Jun 2011 at 9:14