Bug 444558 - "Find/Replace in Files" spends a lot of time on "Collecting files..."
Summary: "Find/Replace in Files" spends a lot of time on "Collecting files..."
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: general (other bugs)
Version First Reported In: 5.6.2
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-28 19:26 UTC by Alexander Sago
Modified: 2021-10-29 12:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.