Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace slow #940

Closed
Btimes2 opened this issue Aug 26, 2021 · 1 comment
Closed

Replace slow #940

Btimes2 opened this issue Aug 26, 2021 · 1 comment

Comments

@Btimes2
Copy link

Btimes2 commented Aug 26, 2021

Replace is slow on Windows 10, WinMerge 2.14.6.
For example, when I compared two texts of 18.000 words, each word in different rows.
The older version of the file used a slightly different spelling in many thousands of rows. I only noticed that after loading it in WinMerge, so I tried to replace the old spelling with the new one in WinMerge, to compare the actual content and not the spelling.

Replacing one word in 18.000 rows takes about 1 second in most text editors on my computer, but for WinMerge it took a full minute.

Could it be that WinMerge tries to compare the texts each time any change occures, including every steps of a replace all command? If so, then this could be optimized.

sdottaka added a commit that referenced this issue Aug 27, 2021
sdottaka added a commit that referenced this issue Aug 28, 2021
sdottaka added a commit that referenced this issue Aug 28, 2021
sdottaka added a commit that referenced this issue Aug 28, 2021
@sdottaka
Copy link
Member

Fixes to commit fed6672, 7a7050e, 593cbbb, and f73ddf7 allow replacement operations that used to take about 20 seconds to complete to be completed in less than a second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants