caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jon Harrop <jon@ffconsultancy.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] 32- and 64-bit performance
Date: Wed, 30 Mar 2005 13:53:35 +0100	[thread overview]
Message-ID: <200503301353.35474.jon@ffconsultancy.com> (raw)
In-Reply-To: <1112173304.27770.22.camel@dsws>

On Wednesday 30 March 2005 10:01, Ville-Pertti Keinonen wrote:
> Back when I got my first amd64 machine...

=:-p

> Note that it isn't memory allocation and deallocation that is slower (on
> amd64, memory allocation is probably faster, since the allocation
> pointer is kept in a register), but programs that use fairly large
> amounts of memory.  32-bit vs. 64-bit might be the difference between
> everything fitting in L2 or not...

Yes. I was thinking that the GC would be slower due to worse cache use in 
64-bit. I used the phrase "de/allocation" as I was applying it to both C++ 
and OCaml.

This raises the question of exactly which OCaml types incur 64-bit quantities 
in the run-time. My guess:

  int (d'oh)
  constant (polymorphic) variant constructor?
  non-constant (polymorphic) variant constructor
  records (except those with all-float fields)
  tuples
  arrays

But isn't there quite a low limit on the number of constant variant type 
constructors allowed? So maybe they're squeezed into something a little 
smaller...

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists


  reply	other threads:[~2005-03-30 12:52 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-30  2:40 Jon Harrop
2005-03-30  7:46 ` [Caml-list] " Alex Baretta
2005-03-30  8:00   ` Ville-Pertti Keinonen
2005-03-30  8:41     ` Alex Baretta
2005-03-30  9:01       ` Ville-Pertti Keinonen
2005-03-30 12:53         ` Jon Harrop [this message]
2005-03-30 14:34           ` Ville-Pertti Keinonen
2005-03-30  8:10   ` Robert Roessler
2005-03-30  8:11   ` Alexander S. Usov
2005-03-30 13:46 ` Eijiro Sumii
2005-03-31 13:42   ` Jon Harrop
2005-03-31 15:05 ` Stefan Monnier
2005-03-31 18:40   ` [Caml-list] " Jon Harrop
2005-03-31 22:41     ` Richard Jones
2005-04-02 20:23     ` Stefan Monnier
2005-04-02 20:50       ` [Caml-list] " David Brown
2005-04-03 10:01         ` Ville-Pertti Keinonen

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=200503301353.35474.jon@ffconsultancy.com \
    --to=jon@ffconsultancy.com \
    --cc=caml-list@yquem.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).