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 discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 3F1D4BC0A for ; Wed, 3 Jan 2007 03:02:55 +0100 (CET) Received: from sdmx1.scea.com (sdmx1.scea.com [160.33.44.36]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0322rnQ007908 for ; Wed, 3 Jan 2007 03:02:54 +0100 Received: from edenfox.989studios.com (edenfox.989studios.com [160.33.45.60]) by sdmx1.scea.com (8.13.6/8.13.1) with ESMTP id l0322miD019105; Tue, 2 Jan 2007 18:02:48 -0800 X-Envelope-From: X-Envelope-To: X-Envelope-To: X-Envelope-To: Received: from postal1-dog.naughtydog.com (testmail.naughtydog.com [10.15.0.5]) by edenfox.989studios.com (8.13.7/8.13.7/SCEAint-1.0) with ESMTP id l0322iP9031387; Tue, 2 Jan 2007 18:02:44 -0800 Received: from [127.0.0.1] ([150.0.5.1]) by postal1-dog.naughtydog.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 2 Jan 2007 18:01:48 -0800 Message-ID: <459B0E17.9030206@naughtydog.com> Date: Tue, 02 Jan 2007 17:59:51 -0800 From: Pal-Kristian Engstad User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Gerd Stolpmann Cc: Erik de Castro Lopo , caml-list@yquem.inria.fr Subject: Re: [Caml-list] ANNOUNCE : libsndfile-ocaml alpha 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> <20070102121424.07da295b.mle+ocaml@mega-nerd.com> <1167765505.5341.12.camel@rosella.wigram> <20070103093701.3b827e81.mle+ocaml@mega-nerd.com> <1167781575.8359.21.camel@localhost.localdomain> In-Reply-To: <1167781575.8359.21.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 03 Jan 2007 02:01:48.0917 (UTC) FILETIME=[20F7BA50:01C72EDB] X-Scanned-By: MIMEDefang 2.48 on 160.33.44.36 X-Scanned-By: MIMEDefang 2.48 on 160.33.45.59 X-BorderEnvelope-To: X-BorderEnvelope-To: X-BorderEnvelope-To: X-Miltered: at discorde with ID 459B0ECD.003 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; gerd:01 stolpmann:01 buffer:01 run-time:01 aligned:01 notation:01 pke:01 steam:98 dog:98 wrote:01 caml-list:01 data:02 data:02 pal-kristian:03 languages:03 Gerd Stolpmann wrote: > Just a quick and somehow interesting observation: Linus assumes that the > read buffer is page-aligned in this comparison, something you cannot > expect in most higher languages (of course you can arrange that in > libsndfile - did you?). That reminds me that the OS guys live in another > world. If you don't care about (run-time) performance then of course you are right. But, please note that a major source of bad performance nowadays is bad data layout. You can typically increase the performance by orders of magnitude by doing simple things as making sure your data is aligned to cache-line boundaries. The "k-factor" in the big-Oh notation is often ignored when it shouldn't. This is one of the reasons arcane languages such as C/C++ keep their steam. Thanks, PKE. -- Pål-Kristian Engstad (engstad@naughtydog.com), Lead Programmer, ICE team, Naughty Dog, Inc., 1601 Cloverfield Blvd, 6000 North, Santa Monica, CA 90404, USA. Ph.: (310) 633-9112. "Most of us would do well to remember that there is a reason Carmack is Carmack, and we are not Carmack.", Jonathan Blow, 2/1/2006, GD Algo Mailing List