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 KAA04360; Sat, 24 Jul 2004 10:57:34 +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 KAA04644 for ; Sat, 24 Jul 2004 10:57:33 +0200 (MET DST) Received: from outbound28-2.lax.untd.com (outbound28-2.lax.untd.com [64.136.28.160]) by nez-perce.inria.fr (8.12.10/8.12.10) with SMTP id i6O8vVEV000484 for ; Sat, 24 Jul 2004 10:57:31 +0200 Received: from outbound28-2.lax.untd.com (smtp03.lax.untd.com [10.130.24.123]) by smtpout01.lax.untd.com with SMTP id AABASEKDQAD6RD82 for (sender ); Sat, 24 Jul 2004 01:57:18 -0700 (PDT) Received: (qmail 1633 invoked from network); 24 Jul 2004 08:56:51 -0000 Received: from unknown (HELO vangogh) (66.52.246.55) by smtp03.lax.untd.com with SMTP; 24 Jul 2004 08:56:51 -0000 From: "Brandon J. Van Every" To: "caml" Subject: RE: [Caml-list] Bigarray is a pig Date: Sat, 24 Jul 2004 02:07:16 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal In-Reply-To: <20040723.230533.104027451.oandrieu@nerim.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-ContentStamp: 7:3:1347782501 X-UNTD-OriginStamp: CI84cOLHFqh7Zd2QWkwvEFvwyO3T/pIsFsCrOjjLH85bV3HJrTDZxNG6BiG3CoSW X-Miltered: at nez-perce with ID 4102247B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; brandon:99 caml-list:01 andrieu:01 ocamlopt:01 generic:01 extern:01 ocamlopt:01 ignores:01 extern:01 caml-list:01 bayesian:01 crap:01 crap:01 unboxed:01 compiler:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Olivier Andrieu wrote: > "Brand*n wrote: > > I have been looking at the sources of the Bigarray implementation. > > I am chagrined to discover that not only does Bigarray cost a > > function call per array element access, > > No. Not always: when the type of the array is completely known to the > compiler at the point the element is accessed, ocamlopt will access > the element directly, without using the generic C function. You are saying that even though Bigarray declares its array element access functions as EXTERN, and implements them in C code, that ocamlopt ignores this and does something else? Using some completely different source code, perhaps? (And where is that code?) Would ocamlopt generally perform such tricks for C functions declared EXTERN? How? Cheers, www.indiegamedesign.com Brand*n Van Every S*attle, WA Praise Be to the caml-list Bayesian filter! It blesseth my postings, it is evil crap! evil crap! Bigarray! Unboxed! Overhead! Wondering! chant chant chant... ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners