Reputation: 1101
I used profile to check my code for speeding up 90% of my code is going on for
open('filename.mat')
I am looking for ways to speed it up all the files are .mat with around 40K lines on 13 columns I was wondering if you know a way to speed it up, maybe changing it to
load('filename.mat')
Is there a speed difference between them?
Upvotes: 2
Views: 52
Reputation: 5672
open
has to determine the file type - if it determines it to be a .mat
file it will call load
.
I wouldn't have expected it to take very long to do that though...
Are you loading files over a network?
Are you running out of RAM?
To answer your question I would expect changing to load to speed things up but not by a lot... Try it and see! :)
Upvotes: 2