Summary: | Application Launcher slow and laggy when Discover not installed | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | pixelplanetdev <pixelplanetdev> |
Component: | Application Launcher (Kickoff) widget | Assignee: | Plasma Bugs List <plasma-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexander.lohnau, mikel5764, nate, nicolas.fella, noahadvs, uriesk |
Priority: | NOR | Keywords: | qt6 |
Version First Reported In: | master | ||
Target Milestone: | 1.0 | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/807049da4acc18b5a771142332ed6ad1d55e4478 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | laggy launcher |
Description
pixelplanetdev
2023-11-17 12:17:21 UTC
Operating System: Fedora Linux 39 KDE Plasma Version: 5.81.0 KDE Frameworks Version: 5.245.0 Qt Version: 6.6.0 Kernel Version: 6.5.11-300.fc39.x86_64 (64-bit) Graphics Platform: Wayland Processors: 8 × Intel® Core™ i7-7700HQ CPU @ 2.80GHz Memory: 15.5 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 630 I am not sure what you mean with hovering over a category. if (mime.isEmpty()) { if (!mimeType.startsWith(QLatin1String("x-scheme-handler/"))) { // don't warn for unknown scheme handler mimetypes qCWarning(SERVICES) << "KApplicationTrader: mimeType" << mimeType << "not found"; return lst; // empty } mime = mimeType; } There is code in KServie to avoid lots of warnings, but in case the schema handler is known to QMimeDatabase, but (for whatever reason) not to KService internally, we will emit a warning later on. Created attachment 163268 [details]
laggy launcher
(In reply to Alexander Lohnau from comment #2) > I am not sure what you mean with hovering over a category. > > if (mime.isEmpty()) { > if (!mimeType.startsWith(QLatin1String("x-scheme-handler/"))) { // > don't warn for unknown scheme handler mimetypes > qCWarning(SERVICES) << "KApplicationTrader: mimeType" << > mimeType << "not found"; > return lst; // empty > } > mime = mimeType; > } > > There is code in KServie to avoid lots of warnings, but in case the schema > handler is known to QMimeDatabase, but (for whatever reason) not to KService > internally, we will emit a warning later on. I mean to just move the cursor over the categories in the launcher to see the applications. I attached a video showing it. The CPU usage of plasmashell is high during it, and if you do any minor task in the background, like watching a video, it gets much slower, up to two seconds till the applications show. This doesn't happen when Discover is installed. Or it's at least much much better. A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3556 Git commit 807049da4acc18b5a771142332ed6ad1d55e4478 by Nicolas Fella. Committed on 19/11/2023 at 20:58. Pushed by nicolasfella into branch 'master'. [kicker/kickoff] Remove unneeded check for appstream handler When KApplicationTrader::preferredService returns no service we ask KIO whether appstream is a known protocol This is expensive and unnecessary, we already know there is no app that can open appstream URLs because KApplicationTrader did not return one M +1 -3 applets/kicker/plugin/actionlist.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/807049da4acc18b5a771142332ed6ad1d55e4478 That was fast, Thanks a lot |