Skip to content

[Improvement] - unzip to RAM instead of disk #202

@darth3PO

Description

@darth3PO

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions