Created attachment 169438 [details] Depiction of the problem. SUMMARY Dolphin takes ≥5s to load ≥52 GiB, 7x10^3-file directory. I've been informed that this is far below the expected threshold of size for such slowness. STEPS TO REPRODUCE Enter the directory. OBSERVED RESULT Dolphin takes ≥ 5s to render its contents. EXPECTED RESULT The aforementioned size shouldn't noticeably affect Dolphin. SOFTWARE/OS VERSIONS Operating System: https://download.fedoraproject.org/pub/fedora/linux/releases/40/Spins/x86_64/iso/Fedora-KDE-Live-x86_64-40-1.14.iso KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.1.0 Qt Version: 6.7.0 Kernel Version: 6.8.9-300.fc40.x86_64 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor Memory: 30.5 GiB of RAM Graphics Processor: AMD Radeon RX 5700 Manufacturer: ASRock Product Name: X670E Taichi ADDITIONAL INFORMATION https://discuss.kde.org/t/dolphin-struggles-to-load-directories-contain-many-files/15450/6?u=rokejulianlockhart
The `perf.data` file is available at https://wim.nl.tab.digital/s/B5Ptt4qN2CdtYNP
(In reply to Roke Julian Lockhart Beedell from comment #1) Redacted due to uselessness, per https://discuss.kde.org/t/dolphin-struggles-to-load-directories-which-contain-many-files/15450/8?u=rokejulianlockhart
(In reply to Roke Julian Lockhart Beedell from comment #2) Flamegraph is available at https://discuss.kde.org/t/dolphin-struggles-to-load-directories-which-contain-many-files/15450/12?u=rokejulianlockhart. If I can export a proper flamegraph, I'll attach it to this bug.
Created attachment 169448 [details] `.perfParser` file from Hotspot. This allows me to retroactively view the performance data, so it might work for you, too.
The flamegraph showed the process spend way too much time retrieve group name for the files. This is a regression from: https://invent.kde.org/frameworks/kio/-/merge_requests/1276 b1a0a7cfe704db2a0aa363fed4e03501f324df9e
This is easily reproducible in dolphin, simply show the user group column with a moderate to high number of files.
Created attachment 169449 [details] View Display Style Preferences (In reply to Méven Car from comment #6)
(In reply to Roke Julian Lockhart Beedell from comment #7) Indeed, disabling that fixes it for me.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1630
Git commit a360462d5290200b27d874d1cb3895336942d55b by Méven Car. Committed on 15/05/2024 at 06:05. Pushed by meven into branch 'master'. kfileitem: cache group names Since b1a0a7cfe704db2a0aa363fed4e03501f324df9e the group name is now fetch in KFFileItem, it was previously fetched inside the file kioworker. Cache the group names in KFileItem using a thread local QMap. M +9 -1 src/core/kfileitem.cpp https://invent.kde.org/frameworks/kio/-/commit/a360462d5290200b27d874d1cb3895336942d55b
Created attachment 169499 [details] Flamegraph https://discuss.kde.org/t/dolphin-struggles-to-load-directories-which-contain-many-files/15450/12?u=rokejulianlockhart