caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Berke Durak <durak@liafa.jussieu.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] boxing of floats in records/classes
Date: Thu, 26 Sep 2002 13:14:47 +0200	[thread overview]
Message-ID: <20020926111447.GA8887@liafa.jussieu.fr> (raw)
In-Reply-To: <20020926100103.C30246@pauillac.inria.fr>

On Thu, Sep 26, 2002 at 10:01:03AM +0200, Xavier Leroy wrote:
> > Quick question: are mutable float fields in records or classes
> boxed?
> 
> Yes, with the exception of records that have all fields of type float.
> In the latter case, the record is represented like a float array, with
> each float unboxed.
> 
> > If so, why?
> 
> Mainly because the runtime system and garbage collector support either
> blocks of pointers or blocks of unboxed data, but not mixed blocks
> containing both pointers and unboxed data.

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 ?
-- 
Berke Durak
-------------------
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-26 11:14 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 [this message]
2002-09-27  9:04     ` Xavier Leroy

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=20020926111447.GA8887@liafa.jussieu.fr \
    --to=durak@liafa.jussieu.fr \
    --cc=caml-list@inria.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).