don't count fast matches against short strings as a sign of being fast; will prevent pulling slow runners in and out of the pool too much

svn path=/trunk/KDE/kdelibs/; revision=934733
This commit is contained in:
Aaron J. Seigo 2009-03-03 17:37:22 +00:00
parent ff578a8af4
commit 93fc8cef68

View File

@ -153,8 +153,7 @@ void AbstractRunner::performMatch(Plasma::RunnerContext &globalContext)
setSpeed(SlowSpeed); setSpeed(SlowSpeed);
} }
//If matches were not added, delete items on the heap if (slowed && runtime < fastEnoughTime && localContext.query().size() > 2) {
if (slowed && runtime < fastEnoughTime) {
++d->fastRuns; ++d->fastRuns;
if (d->fastRuns > 2) { if (d->fastRuns > 2) {