MATLAB Answers

The “load” and “save” functions run very slowly?

6 views (last 30 days)
cui on 20 Jun 2020
Commented: cui on 20 Jun 2020
The “load” and “save” functions run very slowly?
When I load a mat file with a size of nearly 2G, it is very slow. It takes about ten seconds to get into memory. Save is also slow. Can Mathworks provide performance for these 2 functions?
my envs:
os: windows10
card: nvidia 1070-8G
cpu: i7-6700 ,8-cores


Ameer Hamza
Ameer Hamza on 20 Jun 2020
See matfile(): At least this will allow not to load the entire file if you want to access a few variables.
cui on 20 Jun 2020
Thank you for your prompt reply! But when the matfile() function loads my mat variable, it is still relatively slow, and a 2G file also takes tens of seconds. After actually imported into the workspace, it takes up 7.2G. Only one variable is saved in my mat file, As shown below:

Sign in to comment.

Answers (0)




Community Treasure Hunt

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

Start Hunting!