Editor lagging/hanging in displaying .m/.mlx files

10 Ansichten (letzte 30 Tage)
Matt C
Matt C am 7 Feb. 2025
Kommentiert: Matt C am 10 Feb. 2025
I've noticed a delay in m-files and Live Scripts displaying in the editor. The tabs are there, but they appear blank for some time period. The lag time varies from none to up to 30 seconds.ventually the text displays and it is business as usual. These are not big files at all.
I already increased the Java heap memory per another answered post. That seemed to help, but now I am back to lagging.
It seems to be the worst when I have just started MATLAB (it has initialized and says "Ready"). The variance in timing makes me think it is related to my system (i.e. memory, etc.), but everything else on my machine is running smoothly.
Anyone else experience this?

Antworten (1)

Divyanshu
Divyanshu am 10 Feb. 2025
Bearbeitet: Divyanshu am 10 Feb. 2025
Hello @Matt C,
If increasing the Java heap memory does not help in resolving the issue, then probably if your current working directory is on a network and has multiple files, this can introduce lag because MATLAB keeps in memory all files that were open in editor and reopen it next time when you start MATLAB again.
You can refer the following MATLAB answer thread for details:
If the issue still persists you can reach out to MathWorks Technical Support.
  1 Kommentar
Matt C
Matt C am 10 Feb. 2025
Thanks for the reply. Clearing the command window history ended up fixing the issue.
Changing the CD to a less crowded folder didn't seem to have an effect. I only have one file open in the editor. It makes sense that working on a network drive could slow down opening, but this was not the issue in my specific case.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Search Path finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by