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 LAA02650; Fri, 27 Sep 2002 11:04:43 +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 LAA02457 for ; Fri, 27 Sep 2002 11:04:42 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g8R94a502278; Fri, 27 Sep 2002 11:04:36 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA02642; Fri, 27 Sep 2002 11:04:36 +0200 (MET DST) Date: Fri, 27 Sep 2002 11:04:36 +0200 From: Xavier Leroy To: Berke Durak Cc: caml-list@inria.fr Subject: Re: [Caml-list] boxing of floats in records/classes Message-ID: <20020927110436.B2356@pauillac.inria.fr> References: <200209250230.g8P2UJI09079@orchestra.cs.caltech.edu> <20020926100103.C30246@pauillac.inria.fr> <20020926111447.GA8887@liafa.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20020926111447.GA8887@liafa.jussieu.fr>; from durak@liafa.jussieu.fr on Thu, Sep 26, 2002 at 01:14:47PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Would it then be false to assume that if you have many floats in a record, > grouping them into a subrecord would reduce the boxing overhead ? This is true, even if you have as little as two float fields. However, there would be some overhead when accessing one of these fields, in the case where you need the field value to remain boxed (i.e. to pass it to a Caml function). Also, this appraoch sure would not simplify the compiler :-) - Xavier Leroy ------------------- 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