std.file or stream
Kar
akmalxxx at gmail.com
Sun Nov 25 20:42:17 PST 2007
Christopher Wright Wrote:
> Kar wrote:
> > Im trying to index a very large document collections. I need to know which file access method is faster, either std.file read all data into buffer or use stream.
> >
> > i didnt understand stream very well, does it store file strings in memory or just a pointer to exact disc location.
> >
> > The index file could be more than 10GBs, so which method is better.
>
> std.mmfile for the win.
>
> Try the higher-level interface in std.stream.MmFileStream.
Im developing the program under win machine but it will be run as a linux daemon. So mmfile is not an option for me. But i think i understand more about stream now, thanks alot. btw, any other option for buffer file other than mmfile?
More information about the Digitalmars-d
mailing list