| Summary: | Scrolling and browsing brush preset spikes CPU core usage and lag occurs making it hard to use the docker | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Raghavendra kamath <raghu> |
| Component: | Dockers | Assignee: | Lynx3d <lynx.mw+kde> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ahab.greybeard, lynx.mw+kde |
| Priority: | NOR | ||
| Version First Reported In: | nightly build (please specify the git hash!) | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/graphics/krita/commit/1fb0eb8ce1d94869a6ebdf87e83e53081f303914 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Raghavendra kamath
2021-08-14 07:57:21 UTC
The dropdown brush preset chooser is also affected by this Oh wow..."is lagging" is a gross understatement here, the further I scroll down my preset list the longer Krita freezes, I stopped after reaching around 30 seconds for one more wheel "tick", and wasn't even at half down list O.O Git commit 1fb0eb8ce1d94869a6ebdf87e83e53081f303914 by Halla Rempt, on behalf of Mathias Wein.
Committed on 16/08/2021 at 08:20.
Pushed by rempt into branch 'master'.
Don't search for occurrence of empty strings in resourceExists()
For filename there exists an automatic index due to the table condition:
UNIQUE("storage_id","resource_type_id","filename")
so the search is fast, and should solve Bug 440951.
But the search for md5 is about 2 orders of magnitude on a
resource collection with a few additional packs.
It's not clear yet why searching for name isn't nearly as slow,
despite also lacking an (auto-)index, according to the
"EXPLAIN QUERY PLAN" output.
M +50 -40 libs/resources/KisResourceModel.cpp
https://invent.kde.org/graphics/krita/commit/1fb0eb8ce1d94869a6ebdf87e83e53081f303914
*** Bug 441041 has been marked as a duplicate of this bug. *** |