From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA32388; Wed, 30 May 2001 21:04:44 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA32402 for ; Wed, 30 May 2001 21:04:43 +0200 (MET DST) Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f4UJ4g101525 for ; Wed, 30 May 2001 21:04:42 +0200 (MET DST) Received: from checkerlap.d6.com ([64.163.212.163]) by mta5.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0GE500CHLWZC40@mta5.snfc21.pbi.net> for caml-list@inria.fr; Wed, 30 May 2001 12:04:25 -0700 (PDT) Date: Wed, 30 May 2001 12:06:46 -0700 From: Chris Hecker Subject: Re: [Caml-list] floating point performance In-reply-to: <20010530082931.69180.qmail@web11902.mail.yahoo.com> X-Sender: def6@shell16.ba.best.com To: Tom _ , caml-list@inria.fr Message-id: <4.3.2.7.2.20010530120230.02804a80@shell16.ba.best.com> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Content-type: text/plain; charset="us-ascii" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk A topic that is dear to my heart. I haven't done any nontrivial profiling on my application yet, though, so my advice is currently limited. >Also, using Bigarray costs a factor of 3 in speed >compared to otherwise identical code. The profiler >suggests that subscripting isn't getting inlined. >Is there some way of getting faster performance out >of Bigarray? One thing I noticed is that if the types are at all generalized, the Bigarray.{} accesses aren't inlined. So, my code looks like this: type ba2d = (float, Bigarray.float64_elt, Bigarray.c_layout) Bigarray.Array2.t type ba1d = (float, Bigarray.float64_elt, Bigarray.c_layout) Bigarray.Array1.t let mult (a : ba2d) (x : ba1d) = etc. If the code's not too big, and you've got the identical C version, I'd like to see it. Chris ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr