Streams 0.2.1 beta released
David Roundy
droundy at darcs.net
Wed Jul 12 12:19:28 EDT 2006
On Wed, Jul 12, 2006 at 06:05:38PM +0400, Bulat Ziganshin wrote:
> Hello David,
Hi!
> Wednesday, July 12, 2006, 4:51:26 PM, you wrote:
> >> Using memory-mapped files provides slight speed improvement because it
> >> excludes the need to move data between OS buffer and application buffer.
> >> Moreover, this may scale better in multi-threading environments without
> >> need to implement special async I/O, although i don't checked this
> >> assumption.
>
> > There's also the potentially quite significant advantage that with
> > mmapped files you can open up files much larger than the physical
> > memory size.
>
> you can do the same with regular files
I meant to say that you can read in an array larger than the physical
memory size. Indeed, you can create arrays larger than the physical
memory plus swap space. I don't recommend it (except when there's no
swap, perhaps), but you could do it.
--
David Roundy
More information about the Libraries
mailing list