[konsole] [Bug 367882] FileFilter implementation cause konsole cpu usage to go to 80-100%

Martin Sandsmark via KDE Bugzilla bugzilla_noreply at kde.org
Sun Sep 4 13:08:09 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=367882

--- Comment #4 from Martin Sandsmark <martin.sandsmark at kde.org> ---
I think the issue is that Konsole::ScreenWindow::outputChanged() is emitted
every time a mouse button is clicked or the selection changes, which
invalidates the current filter results, which leads to re-evaluating the
filters when the mouse moves.

The file filter itself should also be optimized, maybe a more generic
pre-filtering for valid filenames first, and maybe som pre-processing. And the
generated regex could probably also be optimized a bit. And some caching
wouldn't be a bad idea either.

I'm unable to reproduce the issue, though, even with Konsole filled with
filenames. John; could you add a «qDebug() << regexp;» at line 543 in
Filter.cpp, and upload the regex that is generated? It sounds like the
generated regexp for you manages to trigger a really bad edge case.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list