WinMerge / winmerge

WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
https://winmerge.org/
GNU General Public License v2.0
6.15k stars 784 forks source link

Still scans folder contents if folder does not exist in the other pane's structure. #2219

Open FaceCrap opened 5 months ago

FaceCrap commented 5 months ago

When you compare two folders with each other and have Include subfolders checked, Winmerge is wasting CPU time by still traversing the one side existing folder and scanning/comparing the content to 'nothing'.

Winmerge should not even start to traverse a subfolder if there's no matching subfolder in the right pane structure. Same way if it detects a subfolder existing in the right pane structure which does not exist in the left pane, Winmerge should just stop traversing right there and skip any children of that folder. Winmerge would only need to enumerate and list files in those one-sided folders when actually opening them.

It would speed up the comparison of folder structures tremendously.

sdottaka commented 5 months ago

If you uncheck the Include unique subfolder contents checkbox in the Folder category of the Options window as shown below, folders that do not exist in one will not be scanned.

image