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:
parent
ff578a8af4
commit
93fc8cef68
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user