I am trying to determine the best way to store a large number of small .mat files, about 9000 objects ranging in size from 2k to 100k, for a total of about half the concert.
A typical use case is that I only need to type a small number (for example, 10) of files from disk at a time.
What I tried:
Method 1. If I save each file separately, I have performance problems (very slow saving time and system sluggishness for some time after), since Windows 7 has processing problems, so the files can be in the folder (And I I think my SSD has this rough time too). However, the end result is fine, I can download what I need very quickly. This is used to save "-v6".
Method 2. If I save all the files in one .mat file and load only the variables I need, access will be very slow (downloading takes about three-fourths of the time required to download the entire file, with slight variation depending on the order of saving). It also allows you to save -v6.
I know that I could split files into many folders, but it seems like such a nasty hack (and will not fix SSDs, I don’t like writing many small files), is there a better way?
Edit: Objects consist mainly of a numeric matrix of double data and an accompanying vector of uint32 identifiers, as well as many small identifying properties (char and numeric).
source share