Any easy way to extract files to memory buffer?

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Mar 18 23:01:27 UTC 2019


On Mon, Mar 18, 2019 at 10:38:17PM +0000, Michelle Long via Digitalmars-d-learn wrote:
> 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?
[...]

Why not just use std.mmfile to memory-map the file into memory directly?
Let the OS take care of actually paging in the file data.


T

-- 
Give me some fresh salted fish, please.


More information about the Digitalmars-d-learn mailing list