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!