-
Notifications
You must be signed in to change notification settings - Fork 76
Description
Python version
3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)]
Platform information
Windows-10-10.0.18362-SP0
Numpy version
1.20.1
mdfreader version
4.1
Description
Line 696 in d1822ee
| zip_name = zip_class.extract(zip_name) # locally extracts file |
Passing in a zipped .dat file to Mdf like
yop = mdfreader.Mdf(file_name='DatFile.zip')
will result in the .zip file being extracted to my working directory. Is it possible to extract the zip into RAM instead of SSD/HDD?
When using the multiprocessing library, the bottleneck becomes SSD read/write speed. Wondering if this can be sped up by just using RAM instead.
I'm not sure if zipfile.ZipFile.read() or .open() would work? Some say that io.BytesIO would also do the trick. Most solutions for 'unzip to RAM' assume that we are requesting the file over the internet, but the zip is local. When extracted, the contents would fit in RAM.
Thanks