Any easy way to extract files to memory buffer?

Michelle Long HappyDance321 at gmail.com
Mon Mar 18 22:38:17 UTC 2019


On Monday, 18 March 2019 at 21:14:05 UTC, Vladimir Panteleev 
wrote:
> On Monday, 18 March 2019 at 21:09:55 UTC, Michelle Long wrote:
>> Trying to speed up extracting some files that I first have to 
>> extract using the command line to files then read those in...
>>
>> Not sure what is taking so long. I imagine windows caches the 
>> extraction so maybe it is pointless?
>
> You can speed up such things using a tmpfs or RAM disk.
>
> On Linux you just use mount -t tmpfs ...
>
> On Windows it is a little more complicated, there are programs 
> like ImDisk that can create RAM drives (which can then be 
> formatted to whatever).
>
> If it's just one file, sometimes you can pipe it from the 
> unpacking program (tar etc.) into the consuming program.

Yeah, but it seems like a lot of work simply to extract the files 
to memory.


More information about the Digitalmars-d-learn mailing list