You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
When working with large arrays, Matlab's 'save' command can be very slow, presumably because Matlab attempts to use compression. This function provides a much faster alternative, at the cost of larger files. It only improves speed for variables that are plain arrays; elements of structures or cell arrays are not altered.
Example:
% First make some data
>> ops = struct('algorithm', 'greedy');
>> A = int32(randi(20, 1000, 1200, 40));
>> B = randn(500, 1800, 60);
% Now save it
>> tic; save /tmp/test ops A B; toc
Elapsed time is 22.980294 seconds.
>> tic; savefast /tmp/test ops A B; toc
Elapsed time is 0.571098 seconds.
Happy saving!
Cite As
Tim Holy (2026). Save MAT files more quickly (https://se.mathworks.com/matlabcentral/fileexchange/39721-save-mat-files-more-quickly), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.84 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
