MATLAB Answers

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

6 views (last 30 days)
cui
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
memery:16G
card: nvidia 1070-8G
matlab:r2020a
cpu: i7-6700 ,8-cores

  2 Comments

Ameer Hamza
Ameer Hamza on 20 Jun 2020
See matfile(): https://www.mathworks.com/help/releases/R2020a/matlab/ref/matlab.io.matfile.html. At least this will allow not to load the entire file if you want to access a few variables.
cui
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)

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!