From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id B4DF9BC0A for ; Tue, 2 Jan 2007 02:14:42 +0100 (CET) Received: from smtp.syd.people.net.au (smtp.syd.people.net.au [218.214.225.98]) by concorde.inria.fr (8.13.6/8.13.6) with SMTP id l021Eduk001259 for ; Tue, 2 Jan 2007 02:14:41 +0100 Received: (qmail 2894 invoked from network); 2 Jan 2007 01:14:41 -0000 Received: from unknown (HELO coltrane.mega-nerd.net) (218.214.64.136) by smtp.syd.people.net.au with SMTP; 2 Jan 2007 01:14:41 -0000 Received: from coltrane (coltrane [192.168.1.101]) by coltrane.mega-nerd.net (Postfix) with SMTP id 3EA447B9A; Tue, 2 Jan 2007 12:14:26 +1100 (EST) Date: Tue, 2 Jan 2007 12:14:24 +1100 From: Erik de Castro Lopo To: skaller Cc: caml-list@yquem.inria.fr, matthieu.dubuget@laposte.net Subject: Re: [Caml-list] ANNOUNCE : libsndfile-ocaml alpha Message-Id: <20070102121424.07da295b.mle+ocaml@mega-nerd.com> In-Reply-To: <1167699073.13679.15.camel@rosella.wigram> References: <20061222155407.ebe6c272.mle+ocaml@mega-nerd.com> <45923DC2.9000504@ujf-grenoble.fr> <20061227211046.656615d0.mle+ocaml@mega-nerd.com> <20061231080756.66e89d6c.mle+ocaml@mega-nerd.com> <1167535885.27287.66.camel@rosella.wigram> <20061231152305.694fd3e9.mle+ocaml@mega-nerd.com> <20061231110831.GA21198@furbychan.cocan.org> <20070101095114.911ca90d.mle+ocaml@mega-nerd.com> <4599205A.7050802@laposte.net> <20070102065845.c6558b18.mle+ocaml@mega-nerd.com> <1167699073.13679.15.camel@rosella.wigram> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed version 2.3.0beta5 (GTK+ 2.8.20; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4599B1FF.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 chunks:01 wrote:01 wrote:01 writes:01 caml-list:01 bytes:03 stream:04 erik:04 erik:04 optimized:04 tue:06 space:07 space:07 alpha:08 skaller wrote: > On Tue, 2007-01-02 at 06:58 +1100, Erik de Castro Lopo wrote: > > That file > > is: > > > > 96000 * 60 * 60 * 8 * 4 bytes => > > 11059.200 Mbytes => > > 11.059 Gbytes > > > > Nobody is going to load the whole of that file into memory at once. > > 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 -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "C++ is a language strongly optimized for liars and people who go by guesswork and ignorance." -- Erik Naggum