Origin of 2GB limit when saving

14 次查看(过去 30 天)
Why can't we save .mat objects larger than 2GB without an orders-of-magnitude slowdown? I've read the documentation and understand that it is possible using the -v7.3 flag; I'm interested in the technical reason for the limitation, and if MathWorks has plans to fix it. It seems a bit like an old RAM limitation, but I have to imagine MathWorks would have fixed it by now if that were the case. I know that some FEX functions exist to help with this (eg serialize), and that it's possible to break up data into chunks, but it's always more of a hassle than just saving the .mat. Any insight is welcome, thank you!

采纳的回答

Walter Roberson
Walter Roberson 2019-12-30
The internal size fields of older mat files involve signed 32 bit values.
It might perhaps have been possible to extend to unsigned instead of signed, thus getting up to 4 gigabytes, but that would have been the limit.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by