Why is Matlab slow with large objects in the workspace even when RAM is not limited?
Mostrar comentarios más antiguos
I'm running Matlab on a machine with 200 GB of ram, yet Matlab slows down horribly when I store large (~10GB) objects in the workspace.
To test, I've tried running tic; 1+1; toc.
This snippet sometimes runs nearly instantaneously (as one would expect) but often takes minutes! I cannot discern a pattern in the runtime--it seems random. However, even when it runs slowly (5 min for example), toc still shows that it ran in milliseconds. While the command is running, I'm able to use the computer and Matlab normally (except the command window of course.)
Scripts also run extremely slowly.
How can I speed things up?
1 comentario
David Goodman
el 16 de Dic. de 2022
I'm experiencing the same exact problem on Matlab 2021a with ~15 gig variable on 48g of ram...
Respuesta aceptada
Más respuestas (1)
Steven Lord
el 8 de En. de 2019
1 voto
Do you have the Workspace window open showing the properties of the large object? What happens if you close the Workspace window (leaving the object in the workspace, but not showing its properties) and rerun the tic / toc command?
3 comentarios
Will Roe
el 8 de En. de 2019
JD Peiffer
el 24 de Jul. de 2020
This worked for me as well
Erica Juliano
el 10 de Ag. de 2021
What do you mean by showing the properties? Right now I have my workspace windown minimized. Is this what you mean? Or is there something else I shouldn't be showing? It shows the "value" and "name".
Categorías
Más información sobre Software Development en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!