File Exchange

image thumbnail

Bytestream Save Toolbox

version 1.2.0.0 (8.04 KB) by Jan Berling
Ultrafast saving of workspace variables as bytestreams. Especially useful for big cells and structs.

1 Download

Updated 10 Sep 2014

View License

The bytestream toolbox dramatically reduces the occupied disc space, as well as save and load times for .mat files. The high performance gain is possible, because bytestreams are much smaller than conventional Matlab-variables.
The toolbox provides the creation and saving of bytestreams, as well as the loading and restoring of the initial variables, in one step, respectively.
Inclusive streaming and unstreaming times, the save time and storage space needed for big cells or structs, is reduced by up to 99%.
The toolbox uses the undocumented Matlab functions getByteStreamFromArray() and getArrayFromByteStream(). The idea is based on following article on the undocumented Matlab website. http://undocumentedmatlab.com/blog/serializing-deserializing-matlab-data

This is still a beta version. The stability of Matlab may be decreased, while and after using this toolbox.

Cite As

Jan Berling (2020). Bytestream Save Toolbox (https://www.mathworks.com/matlabcentral/fileexchange/45743-bytestream-save-toolbox), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

Updates

1.2.0.0

- saveBs, saveVarBs, loadBs, loadVarBs changed inputs
- Don't overwrite case unequal files anymore
- faster & cleaner code

1.1.0.0

Link to originating source webpage.

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux