Why has visdiff slowed on the order of magnitudes in MATLABR2022 compared to older versions, and is there a way to speed it up?

3 views (last 30 days)
Previously, i've used visdiff for text files in MATLAB 2017a and will get a comparison within seconds. Now running in MATLAB 2022a it takes minutes to get a result. Is there a reason for this slow down, and is there anyway to speed it up?
  2 Comments
Amit Dhakite
Amit Dhakite on 11 May 2023
Edited: Amit Dhakite on 15 May 2023
Hi Dean,
Could you please provide the files you are comparing, so that I could reproduce the issue at my end?
Dean DeBastiani
Dean DeBastiani on 15 May 2023
Hey Amit,
I cannot provide the actual files. I can provide size representative files. I will note, the same files are compared in 2017a and 2022a, and the files seem to be irrelevant to the problem. Any large text file should bring the issue to light.

Sign in to comment.

Answers (1)

Animesh
Animesh on 3 Oct 2023
The slowdown you are experiencing with the visdiff function in MATLAB 2022a compared to MATLAB 2017a could be due to several reasons. Here are a few possible explanations:
  • Increased file size: If the text files you are comparing have grown significantly, it can lead to longer processing times.
  • External factors: Consider whether any other software or processes running on your computer could be affecting MATLAB's performance.
For more information related to visdiff - https://www.mathworks.com/help/matlab/ref/visdiff.html

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!