Doing so might block the UI. We don't do it for .desktop files, so also don't it for folders.
Details
Details
- Reviewers
dfaure lbeltrame - Group Reviewers
Frameworks - Commits
- R241:3b39f63af50b: [KFileItem] Don't read directory comment on slow mounts
No longer have freezes when hovering a folder on a slow sshfs connection in Dolphon
A less invasive variant than D13757
Diff Detail
Diff Detail
- Repository
- R241 KIO
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Even isSlow() causes blockage as that does KFileSystemType::fileSystemType which then blocks in statfs64 :( (this patch still makes sense imho)
src/core/kfileitem.cpp | ||
---|---|---|
816 | Shouldn't you check isSlow() at the end of the condition, or at least after isDir()? This way it wouldn't be checked for non-directories (you say it takes time...). |
src/core/kfileitem.cpp | ||
---|---|---|
816 | +1, at end will be better. |
Comment Actions
- Move check
isDirectoryMounted creates a QFileInfo on the url anyway, so both are prone to block, doesn't really matter which way round, does it?