Change in Data Storage
显示 更早的评论
Hi All,
My basic question is, has there been a change into the way data is saved (the actual structure of it) for structure files in MATLAB within the past year and a half?
Background:
I have a series of scripts which I use to process large amounts of raw data (10+GB) and save into single files (1-3GB). Since multiple users use these, I have it all built into a MATLAB standalone application which multiple users use. Previously this was all done on MATLAB 2017b. Throughout the year as I have used 2019a I have not noticed any differences either. However I recently updated to 2019b and have noticed considerable changes to my write times in the files. Additionally I have noticed even greater read times for 'new' files (all with the same scripts), even when using the same original data.
tic
who('-file','previouslyGeneratedFile.mat');
toc %0.28s
tic
who('-file','newlyGeneratedFile.mat');%Note <25% of above, using same original data set
toc %17.4s
While the top file reads the variable info in 0.28s, the bottom example takes 17.4s, and that coupled with the second file is less than a quarter size (I used the same original fileset, but what previously took ~1 hour to process now could not complete overnight).
There have been other hints that lead to write/read changes as well which I have not included here.
If anyone has noticed this issue and has a solution please let me know, because without changing anything performance has diminished past any usable limits.
3 个评论
Guillaume
2019-11-26
Which mat file format are you using in each case? Are you explicitly setting it in the save call, or are you using the default (under Preferences -> General -> Mat-files), and if so is it the same in both versions?
Can you post the files somewhere where we can look at them?
Oren Lee
2019-11-26
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!