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 (05:26) |
From: | Erick Tryzelaar <erickt@d...> |
Subject: | Re: [Caml-list] ANNOUNCE : libsndfile-ocaml alpha |
Erik de Castro Lopo wrote: > skaller wrote: > >> Why not? That's tiny compared to available address space on a 64 >> bit machine, and personal computers have heaps >> of free address space >> > > Ok, so someone writes a simple application that loads the whole file > into memory and then plays it. Unfortunately disk transfer speeds being > in the order of 100 Mb/sec means that its going to take 110 seconds to > load that file. Thats bad! > > Obviously, the smart way to do it is to stream that file off disk 100kB > chunks at a time. Thats what libsndfile is designed and optimised for. > > Erik > But a mem-mapped file shouldn't be loaded into physical memory until it's accessed, and then only the page that has the data, right? -e