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 GAA23729; Wed, 6 Jun 2001 06:01:45 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id GAA23608 for ; Wed, 6 Jun 2001 06:01:41 +0200 (MET DST) Received: from staff.gtmd.com (adsl-63-195-80-23.dsl.snfc21.pacbell.net [63.195.80.23]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f5641aL27320 for ; Wed, 6 Jun 2001 06:01:40 +0200 (MET DST) Received: from aria.chasm.org (aria [192.168.0.3]) by staff.gtmd.com (8.9.3/8.9.3) with ESMTP id VAA48906 for ; Tue, 5 Jun 2001 21:00:18 -0700 (PDT) (envelope-from charles@chasm.org) Message-Id: <5.1.0.14.0.20010605205918.03b71790@chasm.org> X-Sender: charles@chasm.org X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 05 Jun 2001 21:04:33 -0700 To: caml-list@inria.fr From: Charles Martin Subject: Re: [Caml-list] OCaml Speed for Block Convolutions In-Reply-To: <200106060203.EAA22757@pauillac.inria.fr> References: <20010605104804.83767.qmail@web11902.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >> > a := !a +. Array.unsafe_get xs i >> a <- a +. Array.unsafe_get xs i At the risk of being off topic, I am wondering why most every code scrap that appears on this list uses [Array|String].unsafe_[get|set], rather than the "safe" versions. Are off-by-one errors and the like so rare? Doesn't adding "-unsafe" as a compiler option to your final build have the same effect? If not, that would be worth knowing. ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr