caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xavier Leroy <xavier.leroy@inria.fr>
To: FD <Florian.Douetteau@ens.fr>
Cc: ocaml <caml-list@inria.fr>
Subject: Re: [Caml-list] error opening large file
Date: Wed, 23 Jan 2002 16:49:32 +0100	[thread overview]
Message-ID: <20020123164932.A16952@pauillac.inria.fr> (raw)
In-Reply-To: <Pine.GSO.4.33.0201160943160.25891-100000@clipper.ens.fr>; from douet@clipper.ens.fr on Wed, Jan 16, 2002 at 09:53:43AM +0100

> Would it degrade arithmetic performance a lot if 'int' conformed to 64-bit
> arithmetic  on all platforms ?
> (on a 32-bit cpu,  small integers would be unboxed, big integers  would be
> boxed)

I think that the cost of a mixed arithmetic like you outline would be
quite high, say, a factor of 5 or 10 on integer-intensive code.

If you're ready to pay that cost, it might be worth using
arbitrary-precision arithmetic for the "big" integers.

- Xavier Leroy
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


  reply	other threads:[~2002-01-23 15:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-11 21:02 Garry Hodgson
2002-01-11 21:51 ` Olivier Andrieu
2002-01-15  9:56 ` Xavier Leroy
2002-01-16  8:53   ` Florian Douetteau
2002-01-23 15:49     ` Xavier Leroy [this message]
2002-01-11 23:32 Florian Douetteau
2002-01-12  0:02 ` David Monniaux

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=20020123164932.A16952@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=Florian.Douetteau@ens.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).