Bytestream Save Toolbox

Ultrafast saving of workspace variables as bytestreams. Especially useful for big cells and structs.
490 Downloads
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 (2024). Bytestream Save Toolbox (https://www.mathworks.com/matlabcentral/fileexchange/45743-bytestream-save-toolbox), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Low-Level File I/O in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
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.

1.0.0.0