Browse thread
ANNOUNCE : libsndfile-ocaml alpha
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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: http://www.cs.helsinki.fi/linux/linux-kernel/2001-40/1661.html Someone has benchmarked mmap vs read/write and found mmap lacking: http://lkml.org/lkml/2002/3/13/38 Interestingly, mmap is also slower than read on freebsd: http://lists.freebsd.org/pipermail/freebsd-questions/2004-June/050245.html http://lists.freebsd.org/pipermail/freebsd-questions/2004-June/050265.html Erik -- +-----------------------------------------------------------+ 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