Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ANNOUNCE : libsndfile-ocaml alpha
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-01-02 (22:43)
From: Erik de Castro Lopo <mle+ocaml@m...>
Subject: Re: [Caml-list] ANNOUNCE : libsndfile-ocaml alpha
skaller wrote:

> Mmaping the file doesn't require pre-loading it, its loaded
> on demand by the paging system. Still, some files might not be mappable,
> depending on the OS and device they're on.

As I have already stated twice in this thread, libsndfile does not
mmap files. It just reads and/or writes :-).

BTW, anyone mmaping files on Linux for performance reasons should
be aware that Linus himself doesn't think mmap will have any
performance improvement over read:

Someone has benchmarked mmap vs read/write and found mmap lacking:

Interestingly, mmap is also slower than read on freebsd:

  Erik de Castro Lopo
"If you think C++ is not overly complicated, just what is a
protected abstract virtual base pure virtual private destructor
and when was the last time you needed one?" -- Tom Cargill