Bug 444558

Summary: "Find/Replace in Files" spends a lot of time on "Collecting files..."
Product: [Applications] kdevelop Reporter: Alexander Sago <alecsago>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED NOT A BUG    
Severity: minor CC: igorkuo
Priority: NOR    
Version First Reported In: 5.6.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexander Sago 2021-10-28 19:26:56 UTC
SUMMARY


STEPS TO REPRODUCE
1. Open the "Find/Replace in Files" dialog
2. Do a search in a directory containing many files

OBSERVED RESULT

KDevelop spends a significant amount of time on "Collecting files..." depending on how many files are in the directory, around 5 seconds in my project which really adds up and becomes annoying when you do searches as often as I do.


EXPECTED RESULT

This is a relatively recent issue, It used to produce results nearly instantly in prior versions (specific versions unknown)


SOFTWARE/OS VERSIONS
Linux: 5.14.14
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Comment 1 Igor Kushnir 2021-10-29 07:39:37 UTC
Do you add all in-tree build directories into the Exclude field of this dialog?

Recent commit https://commits.kde.org/kdevelop/66e4f3b3847dfab6c4f9c4f9ad2488611384b677 included hidden files and directories, so you may want to exclude some of those too.
Comment 2 Alexander Sago 2021-10-29 12:26:19 UTC
Ah, thanks for the pointer. It was indeed related to a very large hidden directory, which explains why it just started happening a while ago. My apologies, it never occurred to me to check that.