caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xavier Leroy <xavier.leroy@inria.fr>
To: Berke Durak <durak@liafa.jussieu.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] boxing of floats in records/classes
Date: Fri, 27 Sep 2002 11:04:36 +0200	[thread overview]
Message-ID: <20020927110436.B2356@pauillac.inria.fr> (raw)
In-Reply-To: <20020926111447.GA8887@liafa.jussieu.fr>; from durak@liafa.jussieu.fr on Thu, Sep 26, 2002 at 01:14:47PM +0200

> 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


      reply	other threads:[~2002-09-27  9:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-25  2:30 Michael Vanier
2002-09-26  8:01 ` Xavier Leroy
2002-09-26 11:14   ` Berke Durak
2002-09-27  9:04     ` Xavier Leroy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020927110436.B2356@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=durak@liafa.jussieu.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).