Summary: | Performance regression when scanning directories with many sub-directories | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Daniel Barea <dbarelop> |
Component: | Database-Scan | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | grave | CC: | caulier.gilles, dbarelop, metzpinguin, stefan.szekeres |
Priority: | NOR | ||
Version: | 6.4.0 | ||
Target Milestone: | --- | ||
Platform: | macOS (DMG) | ||
OS: | macOS | ||
Latest Commit: | https://invent.kde.org/kde/digikam/commit/2d214984e574e63c082e5461cf2c8d72abe95bc1 | Version Fixed In: | 7.0.0 |
Sentry Crash Report: |
Description
Daniel Barea
2019-11-20 10:18:50 UTC
To be more precise, the commit is this one : https://invent.kde.org/kde/digikam/commit/e00ade3c4bd32822db4531bf32906633c84e6c53 Gilles Caulier Well, it's the only way to get the real file name of a folder under Windows. I am amazed that this code takes so long and MacOS. I had carried out intensive tests and there were hardly measurable delays under Linux. Because the folders should be long in the cache, because we already determine the number of folders. Ok, we can only allow this code for Windows. Maik Git commit 2d214984e574e63c082e5461cf2c8d72abe95bc1 by Maik Qualmann. Committed on 20/11/2019 at 11:30. Pushed by mqualmann into branch 'master'. read whole dir only under Windows to get correct file name FIXED-IN: 7.0.0 M +2 -1 NEWS M +6 -4 core/libs/database/collection/collectionscanner_scan.cpp https://invent.kde.org/kde/digikam/commit/2d214984e574e63c082e5461cf2c8d72abe95bc1 Since we are running in least 3 times through network or local folders in the collection scanner, I've been planning a try with a cache for a while now. We'll see how much a QHash consumes with 100K QFileInfo objects and whether it significantly improves performance. Maik Hi Maik Thanks for your fast support, the last commit fixes the issue in my setup. Since the collection I am working with is accessed through a FUSE mount, it is possible that filesystem caches are not being used. So I believe the issue is not macOS/Linux specific and could also arise on Windows for certain volume types. Daniel *** Bug 420334 has been marked as a duplicate of this bug. *** |