-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Very slow on large files (and hangs, can't cancel) #339
Comments
What is actually "the latest" version you are using ? ComparePlus 1.1.0 ? Are the files confidential ? If they are not, could you upload them here or share them so I can analyze what is happening ? BR |
Yes, version 1.1.0. |
Hello @dardoor , Thank you for the example files. BR |
Thanks.
Some programs can compare them instantly. For example Total Commander (select both files and then Files->Compare By Content...). It can show them as binary or as text lines like in N++. It just doesn't look as nice as in N++ with your plugin. And WinMerge is free, looks nice and is very fast too. https://winmerge.org/ I think some of the slowness here is also the fault of N++ itself, which takes a while to open big files even when not comparing. |
Hello @dardoor ,
Interesting. BR |
Hello @dardoor , I have made P.S. About slow responsiveness of Notepad++ when dealing with large files - if you haven't done that already disabling BR |
Hello Pavel, Thank you very much for the recent improvements. 👍 Comparing the files @dardoor provided in #339 (comment), and pressing Cancel after ~2 seconds - NPP still hangs on my machine. Isn't that the case on yours? BR |
Hello Yaron, Thank you for testing this. My change might depend on the computer speed so is your computer processor older generation? Thanks and BR |
Hello Pavel, On Cancel: Before the recent commits: With the latest commit: So there's certainly some improvement, but NPP still hangs/crashes. I've tested it on a relatively powerful PC. Thank you again. BR |
Hello Yaron, That is totally not what I was expecting :)) Well, then my fix works OK - the progress disappears almost instantly meaning that compare has been cancelled but the black screen is something new to me and might be either another bug or most probably NPP related behavior itself. Do you see that black screen when you open the files initially? Thank you very much! 👍 BR |
Hello Pavel,
👍
👍
8.4.8. Unaltered in any way. :)
I've removed all other plugins. Same results.
Interesting.
With Thank you maestro. I appreciate your work. 👍 BR |
Hello Yaron, Thank you for the quick re-test and the reply. 👍 On Wine I do not get a black screen. BR |
Hello Pavel, So we get the same results on native Windows. Thank you for further investing it, and best of luck finding the cause. 👍 And as you wrote: "or most probably NPP related behavior itself". BR |
Hello again Pavel, Regarding the new large-files warning: What do you think? Thank you. |
Hello Yaron, I don't get the black screen on my Win11 but the compare is very slow, yes. It is also true that NPP and ComparePlus definitely cannot handle all file types and file contets equally well so there will always be files that are not easily and quickly handled. Thank you for providing these test files I will try to do some speed optimizations but even if I don't manage to improve things a lot it is a expected limitation in both NPP and CP. BR |
Hello Pavel,
👍
Great. Have a nice weekend. |
Would compare be faster on large files with multicore enabled? Could that be an option in Compare Plus settings? I see that option in code: The cancel check interval maybe is too long. Could it be one second? |
Hi, |
Hello my friend Pavel, Just wanted to express my sincere hope that you're doing well. Best wishes. |
Maybe that diff algo gives a speedup for large files? |
Hello and thank you @informatorius , Hello Yaron, Thank you friend, I am OK just a lot of work to do and it's difficult to switch to "Compare" mode. BR |
Hello Pavel, I'm glad you're OK.
I can relate to that. :) BR |
There's clearly a bug, once the files exceed a certain size it will hang. Other compare tools like visual studio and beyond compare do it almost instantly, so I don't think the files are too big or too complex. Pretty sure this can be fixed. I hope someone will have a look into it, I really like the look of the compare plugins in N++ |
Another idea could be to switch to a very simple diff comparison (line-to-line) above a certain threshold (I have seen the 50k lines mentionned in the discussion for exemple). |
Hello @informatorius , A long time has passed but I finally was able to try that algorithm and unfortunately it is around 3 times slower than the currently used algorithm. BR |
I'm trying the latest version and it's still pretty much unusable on large files (and by "large files" I mean like 10MB).
It can make N++ hang maybe for hours and it's not even possible to cancel the compare process. I don't know if it's the size alone or the number of lines that causes this.
If it's not possible to fix this, maybe you can add a warning when a user tries to compare large files.
The text was updated successfully, but these errors were encountered: