[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Feature Request] Some ideas on 'mmap'
From: |
Daniel Hartwig |
Subject: |
Re: [Feature Request] Some ideas on 'mmap' |
Date: |
Tue, 30 Apr 2013 21:57:40 +0800 |
On 30 April 2013 21:49, Nala Ginrut <address@hidden> wrote:
> If I use bytevector instead, it means I have to read all the content
> from a file first. I don't think it's the same with mmap in POSIX.
> mmap is used for very large data I/O, if we decide to read them all, we
> lose the game.
> mmap does lazy disk I/O automatically for the file.
>
With the pointer that mmap returns you can pointer->bytevector. This
will not read any of the file.
Re: [Feature Request] Some ideas on 'mmap', Ian Price, 2013/04/30