runners/recentdocuments: Improve performance, fix memleak, avoid false positives filling up entry limit, only search for files
Behavior changes:
- Only match documents starting with term for short queries. This (for now) only affects the single runner mode
- Only search for files
- Only display icon by mime type. See the change to only display files
Some Benchmarks using 200 iterations of the krunner benchmark utility (without last commit). Keep in mind that the first 3 characters are ignored, as they are normally in KRunner:
Query | CPU Cycles on master | CPU Cycles with this patch |
---|---|---|
mytextfile | 1.73E+10 | 3.592E+09 |
user | 8.291E+09 | 3.148E+09 |
firefox | 1.325E+10 | 3.601E+09 |
Edited by Alexander Lohnau